class BPL::Derivatives::RetrieveSourceFileFromDatastreamService

Public Class Methods

call(object, options, &block) click to toggle source

Retrieves the source @param [BPL::Derivatives::DatastreamDecorator] object the source file is attached to @param [Hash] options @option options [Symbol] :source a method that can be called on the object to retrieve the source file @yield [Tempfile] a temporary source file that has a lifetime of the block

# 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