Class: Hydra::Derivatives::RetrieveSourceFileService
- Inherits:
-
Object
- Object
- Hydra::Derivatives::RetrieveSourceFileService
- Defined in:
- lib/hydra/derivatives/services/retrieve_source_file_service.rb
Class Method Summary collapse
-
.call(object, options) {|Tempfile| ... } ⇒ Object
Retrieves the source.
Class Method Details
.call(object, options) {|Tempfile| ... } ⇒ Object
Retrieves the source
9 10 11 12 |
# File 'lib/hydra/derivatives/services/retrieve_source_file_service.rb', line 9 def self.call(object, , &block) source_name = .fetch(:source) Hydra::Derivatives::TempfileService.create(object.send(source_name), &block) end |