Class: Vzaar::Resource::Video

Inherits:
Base
  • Object
show all
Defined in:
lib/vzaar/resources/video.rb

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

attribute, #errors, root_node

Methods included from Helper

#blank?, #hash_to_xml, #symb_keys

Instance Method Details

#errorObject



43
44
45
# File 'lib/vzaar/resources/video.rb', line 43

def error
  ""
end

#renditionsObject



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

#stateObject



39
40
41
# File 'lib/vzaar/resources/video.rb', line 39

def state
  "Processing completed"
end