Class: Pageflow::SubmitFileToZencoderJob

Inherits:
ApplicationJob
  • Object
show all
Includes:
StateMachineJob
Defined in:
app/jobs/pageflow/submit_file_to_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/submit_file_to_zencoder_job.rb', line 7

def perform_with_result(file, _options, api = ZencoderApi.instance)
  file.job_id = api.create_job(file.output_definition)
  file.save!

  :ok
end