Sha256: bacd06f4e65ec38a354a8f86f5dada0557ce27babbbdfe8588a9f3d8bebb8a33

Contents?: true

Size: 509 Bytes

Versions: 8

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sdr-client-2.18.0 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.17.0 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.16.0 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.13.2 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.13.1 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.13.0 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.13.0.beta2 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb
sdr-client-2.13.0.beta1 lib/sdr_client/redesigned_client/single_file_grouping_strategy.rb