Object
# File lib/vzaar/video_details.rb, line 28
28: def initialize(xml)
29: @xml = xml
30: doc = REXML::Document.new xml
31: @author_account_type_id = doc.elements['oembed/author_account'] ?
32: doc.elements['oembed/author_account'].text : ''
33: @author_name = doc.elements['oembed/author_name'] ?
34: doc.elements['oembed/author_name'].text : ''
35: @author_url = doc.elements['oembed/author_url'] ?
36: doc.elements['oembed/author_url'].text : ''
37: @duration = doc.elements['oembed/duration'] ?
38: doc.elements['oembed/duration'].text : ''
39: @framegrab_height = doc.elements['oembed/framegrab_height'] ?
40: doc.elements['oembed/framegrab_height'].text : ''
41: @framegrab_url = doc.elements['oembed/framegrab_url'] ?
42: doc.elements['oembed/framegrab_url'].text : ''
43: @framegrab_width = doc.elements['oembed/framegrab_width'] ?
44: doc.elements['oembed/framegrab_width'].text : ''
45: @height = doc.elements['oembed/height'] ? doc.elements['oembed/height'].text : ''
46: @html = doc.elements['oembed/html'] ? doc.elements['oembed/html'].texts[1] : ''
47: @play_count = doc.elements['oembed/play_count'] ?
48: doc.elements['oembed/play_count'].text : ''
49: @provider_name = doc.elements['oembed/provider_name'] ?
50: doc.elements['oembed/provider_name'].text : ''
51: @provider_url = doc.elements['oembed/provider_url'] ?
52: doc.elements['oembed/provider_url'].text : ''
53: @thumbnail_height = doc.elements['oembed/thumbnail_height'] ?
54: doc.elements['oembed/thumbnail_height'].text : ''
55: @thumbnail_url = doc.elements['oembed/thumbnail_url'] ?
56: doc.elements['oembed/thumbnail_url'].text : ''
57: @thumbnail_width = doc.elements['oembed/thumbnail_width'] ?
58: doc.elements['oembed/thumbnail_width'].text : ''
59: @title = doc.elements['oembed/title'] ? doc.elements['oembed/title'].text : ''
60: @type = doc.elements['oembed/type'] ? doc.elements['oembed/type'].text : ''
61: @version = doc.elements['oembed/version'] ?
62: doc.elements['oembed/version'].text : ''
63: @video_status_id = doc.elements['oembed/video_status_id'] ?
64: doc.elements['oembed/video_status_id'].text : ''
65: @video_url = doc.elements['oembed/video_url'] ?
66: doc.elements['oembed/video_url'].text : ''
67: @width = doc.elements['oembed/width'] ? doc.elements['oembed/width'].text : ''
68: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.