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

#copied_from, #created_at, #cue_point_type, #entry_id, #force_stop, #id, #int_id, #is_momentary, #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



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

def children_count
  @children_count
end

#depthObject

Depth in the tree



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

def depth
  @depth
end

#direct_children_countObject

Number of children, first generation only.



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

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



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

def end_time
  @end_time
end

#is_publicObject

Is the annotation public.



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

def is_public
  @is_public
end

#parent_idObject

Returns the value of attribute parent_id.



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

def parent_id
  @parent_id
end

#searchable_on_entryObject

Should the cue point get indexed on the entry.



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

def searchable_on_entry
  @searchable_on_entry
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/kaltura_plugins/kaltura_annotation_client_plugin.rb', line 92

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