Class: XCResult::SortedKeyValueArrayPair

Inherits:
AbstractObject show all
Defined in:
lib/xcresult/models.rb

Overview

  • SortedKeyValueArrayPair

    • Kind: object

    • Properties: + key: String + value: SchemaSerializable

Instance Attribute Summary collapse

Attributes inherited from AbstractObject

#type

Instance Method Summary collapse

Methods inherited from AbstractObject

#fetch_value, #fetch_values

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

#keyObject

Returns the value of attribute key.



542
543
544
# File 'lib/xcresult/models.rb', line 542

def key
  @key
end

#valueObject

Returns the value of attribute value.



543
544
545
# File 'lib/xcresult/models.rb', line 543

def value
  @value
end