Class: Ibancom::Resources::IBAN::Schemes

Inherits:
Collection
  • Object
show all
Defined in:
lib/ibancom/resources/iban/schemes.rb

Instance Attribute Summary

Attributes inherited from Collection

#response

Instance Method Summary collapse

Methods inherited from Collection

#each

Constructor Details

#initialize(response, attributes_collection) ⇒ Schemes

Returns a new instance of Schemes.



7
8
9
10
11
12
13
14
15
# File 'lib/ibancom/resources/iban/schemes.rb', line 7

def initialize(response, attributes_collection)
  parsed = attributes_collection.map do |attributes|
    {
      code: attributes[0],
      supported: attributes[1],
    }
  end
  super(response, Scheme, parsed)
end