Class: Vzaar::Resource::Video
Defined Under Namespace
Classes: Rendition
Instance Attribute Summary
Attributes inherited from Base
#api_version, #doc, #http_status_code
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helper
#blank?, #hash_to_xml, #symb_keys
Instance Method Details
#error ⇒ Object
43 44 45 |
# File 'lib/vzaar/resources/video.rb', line 43 def error "" end |
#renditions ⇒ Object
47 48 49 50 51 |
# File 'lib/vzaar/resources/video.rb', line 47 def renditions @renditions ||= doc.at_xpath("//oembed/renditions").elements.map do |xml| Rendition.new(xml.to_s, http_status_code) end end |
#state ⇒ Object
39 40 41 |
# File 'lib/vzaar/resources/video.rb', line 39 def state "Processing completed" end |