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
6690 6691 6692 |
# File 'lib/kaltura_types.rb', line 6690 def channel_id @channel_id end |
#created_at ⇒ Object
Segment creation date as Unix timestamp (In seconds)
6677 6678 6679 |
# File 'lib/kaltura_types.rb', line 6677 def created_at @created_at end |
#description ⇒ Object
Segment description
6683 6684 6685 |
# File 'lib/kaltura_types.rb', line 6683 def description @description end |
#duration ⇒ Object
Segment play duration time, in mili-seconds
6700 6701 6702 |
# File 'lib/kaltura_types.rb', line 6700 def duration @duration end |
#entry_id ⇒ Object
Entry id to be played
6692 6693 6694 |
# File 'lib/kaltura_types.rb', line 6692 def entry_id @entry_id end |
#id ⇒ Object
Unique identifier
6674 6675 6676 |
# File 'lib/kaltura_types.rb', line 6674 def id @id end |
#name ⇒ Object
Segment name
6681 6682 6683 |
# File 'lib/kaltura_types.rb', line 6681 def name @name end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
6675 6676 6677 |
# File 'lib/kaltura_types.rb', line 6675 def partner_id @partner_id end |
#start_time ⇒ Object
Segment play start time, in mili-seconds, according to trigger type
6698 6699 6700 |
# File 'lib/kaltura_types.rb', line 6698 def start_time @start_time end |
#status ⇒ Object
Returns the value of attribute status.
6688 6689 6690 |
# File 'lib/kaltura_types.rb', line 6688 def status @status end |
#tags ⇒ Object
Segment tags
6685 6686 6687 |
# File 'lib/kaltura_types.rb', line 6685 def @tags end |
#trigger_segment_id ⇒ Object
Live channel segment that the trigger relates to
6696 6697 6698 |
# File 'lib/kaltura_types.rb', line 6696 def trigger_segment_id @trigger_segment_id end |
#trigger_type ⇒ Object
Segment start time trigger type
6694 6695 6696 |
# File 'lib/kaltura_types.rb', line 6694 def trigger_type @trigger_type end |
#type ⇒ Object
Segment could be associated with the main stream, as additional stream or as overlay
6687 6688 6689 |
# File 'lib/kaltura_types.rb', line 6687 def type @type end |
#updated_at ⇒ Object
Segment update date as Unix timestamp (In seconds)
6679 6680 6681 |
# File 'lib/kaltura_types.rb', line 6679 def updated_at @updated_at end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 |
# File 'lib/kaltura_types.rb', line 6724 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 |