Class: BPL::Derivatives::RetrieveSourceFileFromDatastreamService

Inherits:
Object
  • Object
show all
Defined in:
lib/bpl/derivatives/services/retrieve_source_file_from_datastream_service.rb

Class Method Summary collapse

Class Method Details

.call(object, options) {|Tempfile| ... } ⇒ Object

Retrieves the source

Parameters:

Options Hash (options):

  • :source (Symbol)

    a method that can be called on the object to retrieve the source file

Yields:

  • (Tempfile)

    a temporary source file that has a lifetime of the block



8
9
10
# File 'lib/bpl/derivatives/services/retrieve_source_file_from_datastream_service.rb', line 8

def self.call(object, options, &block)
  BPL::Derivatives::TempfileService.create(object, &block)
end