Class: BanksRegistry::Models::Bank
- Inherits:
-
Object
- Object
- BanksRegistry::Models::Bank
- Defined in:
- lib/banks_registry/models/bank.rb
Instance Method Summary collapse
- #bic ⇒ Object
- #bic8 ⇒ Object
- #branch_address ⇒ Object
- #branch_code ⇒ Object
- #branch_name ⇒ Object
- #city ⇒ Object
- #code ⇒ Object
- #country ⇒ Object
-
#initialize(attributes = {}) ⇒ Bank
constructor
A new instance of Bank.
- #name ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Bank
Returns a new instance of Bank.
6 7 8 |
# File 'lib/banks_registry/models/bank.rb', line 6 def initialize(attributes = {}) @attributes = attributes end |
Instance Method Details
#bic ⇒ Object
18 19 20 |
# File 'lib/banks_registry/models/bank.rb', line 18 def bic attributes['swift'] end |
#bic8 ⇒ Object
22 23 24 |
# File 'lib/banks_registry/models/bank.rb', line 22 def bic8 attributes['swift8'] end |
#branch_address ⇒ Object
30 31 32 |
# File 'lib/banks_registry/models/bank.rb', line 30 def branch_address attributes['branch_address'] end |
#branch_code ⇒ Object
34 35 36 |
# File 'lib/banks_registry/models/bank.rb', line 34 def branch_code attributes['branch_code'] end |
#branch_name ⇒ Object
26 27 28 |
# File 'lib/banks_registry/models/bank.rb', line 26 def branch_name attributes['branch_name'] end |
#city ⇒ Object
38 39 40 |
# File 'lib/banks_registry/models/bank.rb', line 38 def city attributes['city'] end |
#code ⇒ Object
14 15 16 |
# File 'lib/banks_registry/models/bank.rb', line 14 def code attributes['code'] end |
#country ⇒ Object
42 43 44 |
# File 'lib/banks_registry/models/bank.rb', line 42 def country attributes['country'] end |
#name ⇒ Object
10 11 12 |
# File 'lib/banks_registry/models/bank.rb', line 10 def name attributes['name'] end |