Class: Kaltura::KalturaHttpNotification

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

Overview

Wrapper for sent notifications

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_notification_job_idObject

ID of the batch job that execute the notification



82
83
84
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 82

def event_notification_job_id
  @event_notification_job_id
end

#event_object_typeObject

Object type that triggered the notification



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

def event_object_type
  @event_object_type
end

#event_typeObject

Ecent type that triggered the notification



90
91
92
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 90

def event_type
  @event_type
end

#objectObject

Object that triggered the notification



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

def object
  @object
end

#template_idObject

ID of the template that triggered the notification



84
85
86
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 84

def template_id
  @template_id
end

#template_nameObject

Name of the template that triggered the notification



86
87
88
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 86

def template_name
  @template_name
end

#template_system_nameObject

System name of the template that triggered the notification



88
89
90
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 88

def template_system_name
  @template_system_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 99

def from_xml(xml_element)
	super
	if xml_element.elements['object'] != nil
		self.object = KalturaClientBase.object_from_xml(xml_element.elements['object'], 'KalturaObjectBase')
	end
	if xml_element.elements['eventObjectType'] != nil
		self.event_object_type = xml_element.elements['eventObjectType'].text
	end
	if xml_element.elements['eventNotificationJobId'] != nil
		self.event_notification_job_id = xml_element.elements['eventNotificationJobId'].text
	end
	if xml_element.elements['templateId'] != nil
		self.template_id = xml_element.elements['templateId'].text
	end
	if xml_element.elements['templateName'] != nil
		self.template_name = xml_element.elements['templateName'].text
	end
	if xml_element.elements['templateSystemName'] != nil
		self.template_system_name = xml_element.elements['templateSystemName'].text
	end
	if xml_element.elements['eventType'] != nil
		self.event_type = xml_element.elements['eventType'].text
	end
end