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



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

def event_notification_job_id
  @event_notification_job_id
end

#event_object_typeObject

Object type that triggered the notification



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

def event_object_type
  @event_object_type
end

#event_typeObject

Ecent type that triggered the notification



98
99
100
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 98

def event_type
  @event_type
end

#objectObject

Object that triggered the notification



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

def object
  @object
end

#template_idObject

ID of the template that triggered the notification



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

def template_id
  @template_id
end

#template_nameObject

Name of the template that triggered the notification



92
93
94
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 92

def template_name
  @template_name
end

#template_system_nameObject

System name of the template that triggered the notification



95
96
97
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 95

def template_system_name
  @template_system_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



107
108
109
110
111
112
113
114
115
116
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 107

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