Class: Ankoder::Video
Overview
Get a video from Ankoder
Videos.find(video_id)
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
count, create, 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
.url_for(video_id, expires_in = nil) ⇒ Object
10 11 12 13 14 |
# File 'lib/ankoder/video.rb', line 10 def self.url_for(video_id, expires_in = nil) = {:access_key => Configuration::access_key, :expires => expires(expires_in)}.to_json = Base64.encode64(HMAC::SHA1::digest(Configuration::private_key, )).strip "http://#{Configuration::host}/video/#{video_id}/download/?message=#{CGI.escape()}&signature=#{}" end |