Class: Kaltura::KalturaBeacon

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_beacon_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#event_typeObject

Returns the value of attribute event_type.



78
79
80
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 78

def event_type
  @event_type
end

#idObject

Beacon id



71
72
73
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 71

def id
  @id
end

#index_typeObject

Beacon indexType



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

def index_type
  @index_type
end

#object_idObject

Returns the value of attribute object_id.



79
80
81
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 79

def object_id
  @object_id
end

#private_dataObject

Returns the value of attribute private_data.



80
81
82
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 80

def private_data
  @private_data
end

#raw_dataObject

Returns the value of attribute raw_data.



81
82
83
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 81

def raw_data
  @raw_data
end

The object which this beacon belongs to



77
78
79
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 77

def related_object_type
  @related_object_type
end

#updated_atObject

Beacon update date as Unix timestamp (In seconds)



75
76
77
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 75

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/kaltura_plugins/kaltura_beacon_client_plugin.rb', line 87

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['indexType'] != nil
		self.index_type = xml_element.elements['indexType'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['relatedObjectType'] != nil
		self.related_object_type = xml_element.elements['relatedObjectType'].text
	end
	if xml_element.elements['eventType'] != nil
		self.event_type = xml_element.elements['eventType'].text
	end
	if xml_element.elements['objectId'] != nil
		self.object_id = xml_element.elements['objectId'].text
	end
	if xml_element.elements['privateData'] != nil
		self.private_data = xml_element.elements['privateData'].text
	end
	if xml_element.elements['rawData'] != nil
		self.raw_data = xml_element.elements['rawData'].text
	end
end