Class: Pageflow::SubmitFileToZencoderJob

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

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

  :ok
end