Class: Kaltura::KalturaCaptionAssetItem
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaCaptionAssetItem
- Defined in:
- lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb
Instance Attribute Summary collapse
-
#asset ⇒ Object
The Caption Asset object.
-
#content ⇒ Object
Returns the value of attribute content.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#entry ⇒ Object
The entry object.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#asset ⇒ Object
The Caption Asset object
35 36 37 |
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 35 def asset @asset end |
#content ⇒ Object
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_time ⇒ Object
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 |
#entry ⇒ Object
The entry object
37 38 39 |
# File 'lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb', line 37 def entry @entry end |
#start_time ⇒ Object
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 |