Class: Kaltura::KalturaCaptionAssetItem

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#assetObject

The Caption Asset object



35
36
37
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 35

def asset
  @asset
end

#contentObject

Returns the value of attribute content.



40
41
42
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 40

def content
  @content
end

#end_timeObject

Returns the value of attribute end_time.



39
40
41
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 39

def end_time
  @end_time
end

#entryObject

The entry object



37
38
39
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 37

def entry
  @entry
end

#start_timeObject

Returns the value of attribute start_time.



38
39
40
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 38

def start_time
  @start_time
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 49

def from_xml(xml_element)
	super
	if xml_element.elements['asset'] != nil
		self.asset = KalturaClientBase.object_from_xml(xml_element.elements['asset'], 'KalturaCaptionAsset')
	end
	if xml_element.elements['entry'] != nil
		self.entry = KalturaClientBase.object_from_xml(xml_element.elements['entry'], 'KalturaBaseEntry')
	end
	if xml_element.elements['startTime'] != nil
		self.start_time = xml_element.elements['startTime'].text
	end
	if xml_element.elements['endTime'] != nil
		self.end_time = xml_element.elements['endTime'].text
	end
	if xml_element.elements['content'] != nil
		self.content = xml_element.elements['content'].text
	end
end