Class: Kaltura::KalturaHttpNotificationObjectData

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

Overview

Evaluates PHP statement, depends on the execution context

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

#api_object_typeObject

Kaltura API object type



161
162
163
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 161

def api_object_type
  @api_object_type
end

#codeObject

PHP code



167
168
169
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 167

def code
  @code
end

#data_string_replacementsObject

An array of pattern-replacement pairs used for data string regex replacements



169
170
171
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 169

def data_string_replacements
  @data_string_replacements
end

#formatObject

Data format



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

def format
  @format
end

#ignore_nullObject

Ignore null attributes during serialization



165
166
167
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 165

def ignore_null
  @ignore_null
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb', line 178

def from_xml(xml_element)
	super
	if xml_element.elements['apiObjectType'] != nil
		self.api_object_type = xml_element.elements['apiObjectType'].text
	end
	if xml_element.elements['format'] != nil
		self.format = xml_element.elements['format'].text
	end
	if xml_element.elements['ignoreNull'] != nil
		self.ignore_null = xml_element.elements['ignoreNull'].text
	end
	if xml_element.elements['code'] != nil
		self.code = xml_element.elements['code'].text
	end
	if xml_element.elements['dataStringReplacements'] != nil
		self.data_string_replacements = KalturaClientBase.object_from_xml(xml_element.elements['dataStringReplacements'], 'KalturaKeyValue')
	end
end