Class: XCResult::SortedKeyValueArrayPair
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- XCResult::SortedKeyValueArrayPair
- Defined in:
- lib/xcresult/models.rb
Overview
-
SortedKeyValueArrayPair
-
Kind: object
-
Properties: + key: String + value: SchemaSerializable
-
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data) ⇒ SortedKeyValueArrayPair
constructor
A new instance of SortedKeyValueArrayPair.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ SortedKeyValueArrayPair
Returns a new instance of SortedKeyValueArrayPair.
544 545 546 547 548 |
# File 'lib/xcresult/models.rb', line 544 def initialize(data) self.key = fetch_value(data, 'key') self.value = fetch_value(data, 'value') super(data) end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
542 543 544 |
# File 'lib/xcresult/models.rb', line 542 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
543 544 545 |
# File 'lib/xcresult/models.rb', line 543 def value @value end |