Class: BanksRegistry::Models::Bank

Inherits:
Object
  • Object
show all
Defined in:
lib/banks_registry/models/bank.rb

Instance Method Summary collapse

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

#bicObject



18
19
20
# File 'lib/banks_registry/models/bank.rb', line 18

def bic
  attributes['swift']
end

#bic8Object



22
23
24
# File 'lib/banks_registry/models/bank.rb', line 22

def bic8
  attributes['swift8']
end

#branch_addressObject



30
31
32
# File 'lib/banks_registry/models/bank.rb', line 30

def branch_address
  attributes['branch_address']
end

#branch_codeObject



34
35
36
# File 'lib/banks_registry/models/bank.rb', line 34

def branch_code
  attributes['branch_code']
end

#branch_nameObject



26
27
28
# File 'lib/banks_registry/models/bank.rb', line 26

def branch_name
  attributes['branch_name']
end

#cityObject



38
39
40
# File 'lib/banks_registry/models/bank.rb', line 38

def city
  attributes['city']
end

#codeObject



14
15
16
# File 'lib/banks_registry/models/bank.rb', line 14

def code
  attributes['code']
end

#countryObject



42
43
44
# File 'lib/banks_registry/models/bank.rb', line 42

def country
  attributes['country']
end

#nameObject



10
11
12
# File 'lib/banks_registry/models/bank.rb', line 10

def name
  attributes['name']
end