Sha256: 140e40e7d7c853e2375f8aa73f3e43fa2dcf7ae71ea2e1c7467582853ac2bdfe
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
module Panda class Encoding < Resource include ShortStatus belongs_to :video has_one :profile def url "http://s3.amazonaws.com/#{cloud.s3_videos_bucket}/#{id}#{extname}" end def screenshots @screenshots ||= if status == 'success' (1..7).map do |i| "http://s3.amazonaws.com/#{cloud.s3_videos_bucket}/#{id}_#{i}.jpg" end else [] end end class << self def first EncodingScope.new(self).per_page(1).first end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
panda-1.0.0 | lib/panda/resources/encoding.rb |