Class: Pageflow::SubmitFileToZencoderJob Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

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

  :ok
end