Class: SdrClient::Deposit::SingleFileGroupingStrategy
- Inherits:
-
Object
- Object
- SdrClient::Deposit::SingleFileGroupingStrategy
- 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
-
.run(uploads: []) ⇒ Array<Array<SdrClient::Deposit::Files::DirectUploadResponse>>
Uploads the grouped uploaded files.
Class Method Details
.run(uploads: []) ⇒ Array<Array<SdrClient::Deposit::Files::DirectUploadResponse>>
Returns uploads the grouped uploaded files.
9 10 11 |
# File 'lib/sdr_client/deposit/single_file_grouping_strategy.rb', line 9 def self.run(uploads: []) uploads.map { |upload| [upload] } end |