Class: Pageflow::RequestMetaDataFromZencoderJob

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

Instance Method Summary collapse

Instance 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 perform_with_result(file, _options, api = ZencoderApi.instance)
  file.job_id = api.create_job(ZencoderMetaDataOutputDefinition.new(file))
  file.save!

  :ok
end