Class: Kaltura::KalturaAnnotation

Inherits:
KalturaCuePoint show all
Defined in:
lib/kaltura_plugins/kaltura_annotation_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaCuePoint

#created_at, #cue_point_type, #entry_id, #force_stop, #id, #partner_data, #partner_id, #partner_sort_value, #start_time, #status, #system_name, #tags, #thumb_offset, #triggered_at, #updated_at, #user_id

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#children_countObject

Number of all descendants



64
65
66
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 64

def children_count
  @children_count
end

#depthObject

Depth in the tree



61
62
63
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 61

def depth
  @depth
end

#direct_children_countObject

Number of children, first generation only.



67
68
69
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 67

def direct_children_count
  @direct_children_count
end

#durationObject

Duration in milliseconds



58
59
60
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 58

def duration
  @duration
end

#end_timeObject

End time in milliseconds



55
56
57
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 55

def end_time
  @end_time
end

#is_publicObject

Is the annotation public.



70
71
72
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 70

def is_public
  @is_public
end

#parent_idObject

Returns the value of attribute parent_id.



51
52
53
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 51

def parent_id
  @parent_id
end

#searchable_on_entryObject

Should the cue point get indexed on the entry.



73
74
75
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 73

def searchable_on_entry
  @searchable_on_entry
end

#textObject

Returns the value of attribute text.



52
53
54
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 52

def text
  @text
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 97

def from_xml(xml_element)
	super
	self.parent_id = xml_element.elements['parentId'].text
	self.text = xml_element.elements['text'].text
	self.end_time = xml_element.elements['endTime'].text
	self.duration = xml_element.elements['duration'].text
	self.depth = xml_element.elements['depth'].text
	self.children_count = xml_element.elements['childrenCount'].text
	self.direct_children_count = xml_element.elements['directChildrenCount'].text
	self.is_public = xml_element.elements['isPublic'].text
	self.searchable_on_entry = xml_element.elements['searchableOnEntry'].text
end