Class: Ibancom::Resources::IBAN::Schemes
- Inherits:
-
Collection
- Object
- Collection
- Ibancom::Resources::IBAN::Schemes
- Defined in:
- lib/ibancom/resources/iban/schemes.rb
Instance Attribute Summary
Attributes inherited from Collection
Instance Method Summary collapse
-
#initialize(response, attributes_collection) ⇒ Schemes
constructor
A new instance of Schemes.
Methods inherited from Collection
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 |