Class: Hydra::Derivatives::RemoteSourceFile
- Inherits:
-
Object
- Object
- Hydra::Derivatives::RemoteSourceFile
- Defined in:
- lib/hydra/derivatives/services/remote_source_file.rb
Class Method Summary collapse
-
.call(object, options) {|String| ... } ⇒ Object
Finds the file name of the remote source file.
Class Method Details
.call(object, options) {|String| ... } ⇒ Object
Finds the file name of the remote source file.
14 15 16 17 |
# File 'lib/hydra/derivatives/services/remote_source_file.rb', line 14 def self.call(object, , &_block) source_name = .fetch(:source, :to_s) yield(object.send(source_name)) end |