Sha256: f2b5b8df552d3b45b5661c36699068272420c82a29ae58e1a886b73239bd963b
Contents?: true
Size: 512 Bytes
Versions: 5
Compression:
Stored size: 512 Bytes
Contents
module Panda class Encoding < Resource include ShortStatus belongs_to :video has_one :profile class << self def first EncodingScope.new(self).per_page(1).first end end def url get_url("#{extname}") end def error_log get_url(".log") if fail? end def screenshots ((1..7).map{|i| get_url("_#{i}.jpg")} if success?) || [] end private def get_url(end_path) "#{cloud.url}#{path}#{end_path}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems