Class: Kaltura::KalturaEventNotificationTemplate

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_event_notification_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

#automatic_dispatch_enabledObject

Define that the template could be dispatched automatically by the system



148
149
150
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 148

def automatic_dispatch_enabled
  @automatic_dispatch_enabled
end

#content_parametersObject

Define the content dynamic parameters



160
161
162
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 160

def content_parameters
  @content_parameters
end

#created_atObject

Returns the value of attribute created_at.



141
142
143
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 141

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



138
139
140
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 138

def description
  @description
end

#event_conditionsObject

Define the conditions that cause this notification to be triggered



157
158
159
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 157

def event_conditions
  @event_conditions
end

#event_object_typeObject

Define the object that raied the event that should trigger this notification



154
155
156
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 154

def event_object_type
  @event_object_type
end

#event_typeObject

Define the event that should trigger this notification



151
152
153
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 151

def event_type
  @event_type
end

#idObject

Returns the value of attribute id.



134
135
136
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 134

def id
  @id
end

#manual_dispatch_enabledObject

Define that the template could be dispatched manually from the API



145
146
147
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 145

def manual_dispatch_enabled
  @manual_dispatch_enabled
end

#nameObject

Returns the value of attribute name.



136
137
138
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 136

def name
  @name
end

#partner_idObject

Returns the value of attribute partner_id.



135
136
137
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 135

def partner_id
  @partner_id
end

#statusObject

Returns the value of attribute status.



140
141
142
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 140

def status
  @status
end

#system_nameObject

Returns the value of attribute system_name.



137
138
139
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 137

def system_name
  @system_name
end

#typeObject

Returns the value of attribute type.



139
140
141
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 139

def type
  @type
end

#updated_atObject

Returns the value of attribute updated_at.



142
143
144
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 142

def updated_at
  @updated_at
end

#user_parametersObject

Define the content dynamic parameters



163
164
165
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 163

def user_parameters
  @user_parameters
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb', line 187

def from_xml(xml_element)
	super
	self.id = xml_element.elements['id'].text
	self.partner_id = xml_element.elements['partnerId'].text
	self.name = xml_element.elements['name'].text
	self.system_name = xml_element.elements['systemName'].text
	self.description = xml_element.elements['description'].text
	self.type = xml_element.elements['type'].text
	self.status = xml_element.elements['status'].text
	self.created_at = xml_element.elements['createdAt'].text
	self.updated_at = xml_element.elements['updatedAt'].text
	self.manual_dispatch_enabled = xml_element.elements['manualDispatchEnabled'].text
	self.automatic_dispatch_enabled = xml_element.elements['automaticDispatchEnabled'].text
	self.event_type = xml_element.elements['eventType'].text
	self.event_object_type = xml_element.elements['eventObjectType'].text
	self.event_conditions = KalturaClientBase.object_from_xml(xml_element.elements['eventConditions'], 'KalturaCondition')
	self.content_parameters = KalturaClientBase.object_from_xml(xml_element.elements['contentParameters'], 'KalturaEventNotificationParameter')
	self.user_parameters = KalturaClientBase.object_from_xml(xml_element.elements['userParameters'], 'KalturaEventNotificationParameter')
end