Class: Docdata::Bank
- Inherits:
-
Object
- Object
- Docdata::Bank
- Defined in:
- lib/docdata/bank.rb
Overview
Object representing a "Bank" object with attributes provided by Mollie
Instance Attribute Summary collapse
-
#id ⇒ String
The id of the bank provided by Mollie.
-
#name ⇒ String
The name of the bank.
Instance Method Summary collapse
-
#initialize(values = nil) ⇒ Bank
constructor
Initializer to transform a +Hash+ into an Bank object.
Constructor Details
#initialize(values = nil) ⇒ Bank
Initializer to transform a +Hash+ into an Bank object
20 21 22 23 24 25 |
# File 'lib/docdata/bank.rb', line 20 def initialize(values=nil) return if values.nil? @id = values[:id].to_s @name = values[:name].to_s end |
Instance Attribute Details
#id ⇒ String
Returns The id of the bank provided by Mollie.
12 13 14 |
# File 'lib/docdata/bank.rb', line 12 def id @id end |
#name ⇒ String
Returns The name of the bank.
14 15 16 |
# File 'lib/docdata/bank.rb', line 14 def name @name end |