Class: SdrClient::Deposit::SingleFileGroupingStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/sdr_client/deposit/single_file_grouping_strategy.rb

Overview

This strategy is for building one file set per uploaded file

Class Method Summary collapse

Class Method Details

.run(uploads: []) ⇒ Array<Array<SdrClient::Deposit::Files::DirectUploadResponse>>

Returns uploads the grouped uploaded files.

Parameters:

Returns:



9
10
11
# File 'lib/sdr_client/deposit/single_file_grouping_strategy.rb', line 9

def self.run(uploads: [])
  uploads.map { |upload| [upload] }
end