Class: Ankoder::Job

Inherits:
Base
  • Object
show all
Defined in:
lib/ankoder/job.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors

Class Method Summary collapse

Methods inherited from Base

count, destroy, #destroy, destroy_all, disconnect!, establish_connection!, find, #id, #include_ankoder_object, #initialize, method_missing, #method_missing, #new_record?, path, path=, #reload, #save, #save!, session, session=, update, #update_attributes

Constructor Details

This class inherits a constructor from Ankoder::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ankoder::Base

Class Method Details

.create(attributes = {}) ⇒ Object

Encode the given video into the given format

Video_ID is the video id that get from Ankoder::Download
Profile_ID is selected from the list of Ankoder::Profile.find(:all)

Job.create(:original_file_id => "Video_ID", :profile_id => "Profile_ID", 
           :postback_url => 'http://your_own_host.com/postback/job')


12
13
14
15
# File 'lib/ankoder/job.rb', line 12

def self.create(attributes={})
  job = super
  return job 
end