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.



261
262
263
# File 'lib/kaltura_types.rb', line 261

def key
  @key
end

#valueObject

Returns the value of attribute value.



262
263
264
# File 'lib/kaltura_types.rb', line 262

def value
  @value
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



265
266
267
268
269
# File 'lib/kaltura_types.rb', line 265

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