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)
Direct Known Subclasses
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.
334 335 336 |
# File 'lib/kaltura_types.rb', line 334 def key @key end |
#value ⇒ Object
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 |