Class: Kaltura::KalturaKeyValue
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaKeyValue
- 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
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
261 262 263 |
# File 'lib/kaltura_types.rb', line 261 def key @key end |
#value ⇒ Object
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 |