Class: Kaltura::KalturaLiveChannelSegment
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaLiveChannelSegment
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
Live channel id.
-
#created_at ⇒ Object
Segment creation date as Unix timestamp (In seconds).
-
#description ⇒ Object
Segment description.
-
#duration ⇒ Object
Segment play duration time, in mili-seconds.
-
#entry_id ⇒ Object
Entry id to be played.
-
#id ⇒ Object
Unique identifier.
-
#name ⇒ Object
Segment name.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#start_time ⇒ Object
Segment play start time, in mili-seconds, according to trigger type.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tags ⇒ Object
Segment tags.
-
#trigger_segment_id ⇒ Object
Live channel segment that the trigger relates to.
-
#trigger_type ⇒ Object
Segment start time trigger type.
-
#type ⇒ Object
Segment could be associated with the main stream, as additional stream or as overlay.
-
#updated_at ⇒ Object
Segment update date as Unix timestamp (In seconds).
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#channel_id ⇒ Object
Live channel id
6324 6325 6326 |
# File 'lib/kaltura_types.rb', line 6324 def channel_id @channel_id end |
#created_at ⇒ Object
Segment creation date as Unix timestamp (In seconds)
6311 6312 6313 |
# File 'lib/kaltura_types.rb', line 6311 def created_at @created_at end |
#description ⇒ Object
Segment description
6317 6318 6319 |
# File 'lib/kaltura_types.rb', line 6317 def description @description end |
#duration ⇒ Object
Segment play duration time, in mili-seconds
6334 6335 6336 |
# File 'lib/kaltura_types.rb', line 6334 def duration @duration end |
#entry_id ⇒ Object
Entry id to be played
6326 6327 6328 |
# File 'lib/kaltura_types.rb', line 6326 def entry_id @entry_id end |
#id ⇒ Object
Unique identifier
6308 6309 6310 |
# File 'lib/kaltura_types.rb', line 6308 def id @id end |
#name ⇒ Object
Segment name
6315 6316 6317 |
# File 'lib/kaltura_types.rb', line 6315 def name @name end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
6309 6310 6311 |
# File 'lib/kaltura_types.rb', line 6309 def partner_id @partner_id end |
#start_time ⇒ Object
Segment play start time, in mili-seconds, according to trigger type
6332 6333 6334 |
# File 'lib/kaltura_types.rb', line 6332 def start_time @start_time end |
#status ⇒ Object
Returns the value of attribute status.
6322 6323 6324 |
# File 'lib/kaltura_types.rb', line 6322 def status @status end |
#tags ⇒ Object
Segment tags
6319 6320 6321 |
# File 'lib/kaltura_types.rb', line 6319 def @tags end |
#trigger_segment_id ⇒ Object
Live channel segment that the trigger relates to
6330 6331 6332 |
# File 'lib/kaltura_types.rb', line 6330 def trigger_segment_id @trigger_segment_id end |
#trigger_type ⇒ Object
Segment start time trigger type
6328 6329 6330 |
# File 'lib/kaltura_types.rb', line 6328 def trigger_type @trigger_type end |
#type ⇒ Object
Segment could be associated with the main stream, as additional stream or as overlay
6321 6322 6323 |
# File 'lib/kaltura_types.rb', line 6321 def type @type end |
#updated_at ⇒ Object
Segment update date as Unix timestamp (In seconds)
6313 6314 6315 |
# File 'lib/kaltura_types.rb', line 6313 def updated_at @updated_at end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 |
# File 'lib/kaltura_types.rb', line 6358 def from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].text end if xml_element.elements['createdAt'] != nil self.created_at = xml_element.elements['createdAt'].text end if xml_element.elements['updatedAt'] != nil self.updated_at = xml_element.elements['updatedAt'].text end if xml_element.elements['name'] != nil self.name = xml_element.elements['name'].text end if xml_element.elements['description'] != nil self.description = xml_element.elements['description'].text end if xml_element.elements['tags'] != nil self. = xml_element.elements['tags'].text end if xml_element.elements['type'] != nil self.type = xml_element.elements['type'].text end if xml_element.elements['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['channelId'] != nil self.channel_id = xml_element.elements['channelId'].text end if xml_element.elements['entryId'] != nil self.entry_id = xml_element.elements['entryId'].text end if xml_element.elements['triggerType'] != nil self.trigger_type = xml_element.elements['triggerType'].text end if xml_element.elements['triggerSegmentId'] != nil self.trigger_segment_id = xml_element.elements['triggerSegmentId'].text end if xml_element.elements['startTime'] != nil self.start_time = xml_element.elements['startTime'].text end if xml_element.elements['duration'] != nil self.duration = xml_element.elements['duration'].text end end |