Class: Kaltura::KalturaAdCuePoint

Inherits:
KalturaCuePoint show all
Defined in:
lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaCuePoint

#copied_from, #created_at, #cue_point_type, #entry_id, #force_stop, #id, #int_id, #is_momentary, #partner_data, #partner_id, #partner_sort_value, #start_time, #status, #system_name, #tags, #thumb_offset, #triggered_at, #updated_at, #user_id

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#ad_typeObject

Returns the value of attribute ad_type.



67
68
69
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 67

def ad_type
  @ad_type
end

#durationObject

Duration in milliseconds



71
72
73
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 71

def duration
  @duration
end

#end_timeObject

Returns the value of attribute end_time.



69
70
71
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 69

def end_time
  @end_time
end

#protocol_typeObject

Returns the value of attribute protocol_type.



65
66
67
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 65

def protocol_type
  @protocol_type
end

#source_urlObject

Returns the value of attribute source_url.



66
67
68
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 66

def source_url
  @source_url
end

#titleObject

Returns the value of attribute title.



68
69
70
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 68

def title
  @title
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb', line 80

def from_xml(xml_element)
	super
	if xml_element.elements['protocolType'] != nil
		self.protocol_type = xml_element.elements['protocolType'].text
	end
	if xml_element.elements['sourceUrl'] != nil
		self.source_url = xml_element.elements['sourceUrl'].text
	end
	if xml_element.elements['adType'] != nil
		self.ad_type = xml_element.elements['adType'].text
	end
	if xml_element.elements['title'] != nil
		self.title = xml_element.elements['title'].text
	end
	if xml_element.elements['endTime'] != nil
		self.end_time = xml_element.elements['endTime'].text
	end
	if xml_element.elements['duration'] != nil
		self.duration = xml_element.elements['duration'].text
	end
end