Sha256: d09c46002bc6a2e694e85079941f401fe60f570795500feb419cf3db1543411c

Contents?: true

Size: 497 Bytes

Versions: 144

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module SdrClient
  module Deposit
    # This strategy is for building one file set per uploaded file
    class SingleFileGroupingStrategy
      # @param [Array<SdrClient::Deposit::Files::DirectUploadResponse>] uploads the uploaded files to attach.
      # @return [Array<Array<SdrClient::Deposit::Files::DirectUploadResponse>>] uploads the grouped uploaded files.
      def self.run(uploads: [])
        uploads.map { |upload| [upload] }
      end
    end
  end
end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
sdr-client-2.18.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.17.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.16.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.13.2 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.13.1 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.13.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.13.0.beta2 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.13.0.beta1 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.12.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.11.1 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.11.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.10.1 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.10.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.9.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.8.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.7.1 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.7.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.6.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.5.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb
sdr-client-2.4.0 lib/sdr_client/deposit/single_file_grouping_strategy.rb