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
3351 3352 3353 |
# File 'lib/kaltura_types.rb', line 3351 def channel_id @channel_id end |
#created_at ⇒ Object
Segment creation date as Unix timestamp (In seconds)
3332 3333 3334 |
# File 'lib/kaltura_types.rb', line 3332 def created_at @created_at end |
#description ⇒ Object
Segment description
3341 3342 3343 |
# File 'lib/kaltura_types.rb', line 3341 def description @description end |
#duration ⇒ Object
Segment play duration time, in mili-seconds
3366 3367 3368 |
# File 'lib/kaltura_types.rb', line 3366 def duration @duration end |
#entry_id ⇒ Object
Entry id to be played
3354 3355 3356 |
# File 'lib/kaltura_types.rb', line 3354 def entry_id @entry_id end |
#id ⇒ Object
Unique identifier
3328 3329 3330 |
# File 'lib/kaltura_types.rb', line 3328 def id @id end |
#name ⇒ Object
Segment name
3338 3339 3340 |
# File 'lib/kaltura_types.rb', line 3338 def name @name end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
3329 3330 3331 |
# File 'lib/kaltura_types.rb', line 3329 def partner_id @partner_id end |
#start_time ⇒ Object
Segment play start time, in mili-seconds, according to trigger type
3363 3364 3365 |
# File 'lib/kaltura_types.rb', line 3363 def start_time @start_time end |
#status ⇒ Object
Returns the value of attribute status.
3348 3349 3350 |
# File 'lib/kaltura_types.rb', line 3348 def status @status end |
#tags ⇒ Object
Segment tags
3344 3345 3346 |
# File 'lib/kaltura_types.rb', line 3344 def end |
#trigger_segment_id ⇒ Object
Live channel segment that the trigger relates to
3360 3361 3362 |
# File 'lib/kaltura_types.rb', line 3360 def trigger_segment_id @trigger_segment_id end |
#trigger_type ⇒ Object
Segment start time trigger type
3357 3358 3359 |
# File 'lib/kaltura_types.rb', line 3357 def trigger_type @trigger_type end |
#type ⇒ Object
Segment could be associated with the main stream, as additional stream or as overlay
3347 3348 3349 |
# File 'lib/kaltura_types.rb', line 3347 def type @type end |
#updated_at ⇒ Object
Segment update date as Unix timestamp (In seconds)
3335 3336 3337 |
# File 'lib/kaltura_types.rb', line 3335 def updated_at @updated_at end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 |
# File 'lib/kaltura_types.rb', line 3384 def from_xml(xml_element) super self.id = xml_element.elements['id'].text self.partner_id = xml_element.elements['partnerId'].text self.created_at = xml_element.elements['createdAt'].text self.updated_at = xml_element.elements['updatedAt'].text self.name = xml_element.elements['name'].text self.description = xml_element.elements['description'].text self. = xml_element.elements['tags'].text self.type = xml_element.elements['type'].text self.status = xml_element.elements['status'].text self.channel_id = xml_element.elements['channelId'].text self.entry_id = xml_element.elements['entryId'].text self.trigger_type = xml_element.elements['triggerType'].text self.trigger_segment_id = xml_element.elements['triggerSegmentId'].text self.start_time = xml_element.elements['startTime'].text self.duration = xml_element.elements['duration'].text end |