Sha256: bc30b85aa799ad5babc05c8a8889a2908a7dda134712f10341ecba007c15705f
Contents?: true
Size: 1.47 KB
Versions: 7
Compression:
Stored size: 1.47 KB
Contents
module Vzaar module Resource class Video < Base class Rendition < Base root_node "//rendition" attribute :type attribute :status attribute :status_id, type: Integer end root_node "//oembed" attribute :type attribute :title attribute :html attribute :description attribute :provider_name attribute :provider_url attribute :thumbnail_url attribute :framegrab_url attribute :user_name, field: :author_name attribute :user_url, field: :author_url attribute :url, field: :video_url attribute :user_account_type_id, field: :author_account, type: Integer attribute :width, type: Integer attribute :height, type: Integer attribute :thumbnail_width, type: Integer attribute :thumbnail_height, type: Integer attribute :framegrab_height, type: Integer attribute :framegrab_width, type: Integer attribute :duration, type: Integer attribute :play_count, type: Integer attribute :total_size, type: Integer attribute :status_id, field: :video_status_id, type: Integer attribute :status_description, field: :video_status_description def state "Processing completed" end def error "" end def renditions @renditions ||= doc.at_xpath("//oembed/renditions").elements.map do |xml| Rendition.new(xml.to_s, http_status_code) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems