class Hydra::Derivatives::RemoteSourceFile
Public Class Methods
call(object, options) { |send| ... }
click to toggle source
Finds the file name of the remote source file. @param [String, ActiveFedora::Base] object file name, or an object that has a method that will return the file name @param [Hash] options @option options [Symbol] :source a method that can be called on the object to retrieve the source file's name @yield [String] the file name
# File lib/hydra/derivatives/services/remote_source_file.rb, line 13 def self.call(object, options, &_block) source_name = options.fetch(:source, :to_s) yield(object.send(source_name)) end