Sha256: f3667426426080c52a8e7c0ceb8d9a0945fa2cc7812297848aa7cd602ce97a5e
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
module Panda class Video < Resource include VideoState has_many :encodings class << self def first VideoScope.new(self).per_page(1).first end end def metadata connection.get("/videos/#{id}/metadata.json") end def preview_url get_url("#{path}_1.jpg") if success? end def url get_url("#{path}#{extname}") if success? end private def get_url(end_path) "#{cloud.url}#{end_path}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
panda-1.5.0 | lib/panda/resources/video.rb |