Class: Pageflow::RequestMetaDataFromZencoderJob

Inherits:
Object
  • Object
show all
Extended by:
StateMachineJob
Defined in:
app/jobs/pageflow/request_meta_data_from_zencoder_job.rb

Class Method Summary collapse

Class Method Details

.perform_with_result(file, options, api = ZencoderApi.instance) ⇒ Object


7
8
9
10
11
12
# File 'app/jobs/pageflow/request_meta_data_from_zencoder_job.rb', line 7

def self.perform_with_result(file, options, api = ZencoderApi.instance)
  file.job_id = api.create_job(ZencoderMetaDataOutputDefinition.new(file))
  file.save!

  :ok
end