Class: XCResult::SortedKeyValueArray

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

Overview

  • SortedKeyValueArray

    • Kind: object

    • Properties: + storage: [SortedKeyValueArrayPair]

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) ⇒ SortedKeyValueArray

Returns a new instance of SortedKeyValueArray.



528
529
530
531
532
533
# File 'lib/xcresult/models.rb', line 528

def initialize(data)
  self.storage = fetch_values(data, 'storage').map do |pair_data|
    SortedKeyValueArrayPair.new(pair_data)
  end
  super(data)
end

Instance Attribute Details

#storageObject

Returns the value of attribute storage.



527
528
529
# File 'lib/xcresult/models.rb', line 527

def storage
  @storage
end