Class: Kaltura::KalturaKeyValue

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Overview

A key value pair representation to return an array of key-value pairs (associative array)

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

#keyObject

Returns the value of attribute key.



334
335
336
# File 'lib/kaltura_types.rb', line 334

def key
  @key
end

#valueObject

Returns the value of attribute value.



335
336
337
# File 'lib/kaltura_types.rb', line 335

def value
  @value
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



338
339
340
341
342
343
344
345
346
# File 'lib/kaltura_types.rb', line 338

def from_xml(xml_element)
	super
	if xml_element.elements['key'] != nil
		self.key = xml_element.elements['key'].text
	end
	if xml_element.elements['value'] != nil
		self.value = xml_element.elements['value'].text
	end
end