Class: TurkishBanks::Bank
- Inherits:
-
TurkishBank
- Object
- TurkishBank
- TurkishBanks::Bank
- Defined in:
- lib/turkish_banks/bank.rb
Constant Summary
Constants inherited from TurkishBank
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from TurkishBank
Instance Method Summary collapse
-
#initialize(bank) ⇒ Bank
constructor
A new instance of Bank.
Methods inherited from TurkishBank
#get_branches_of, #get_information_of
Constructor Details
#initialize(bank) ⇒ Bank
Returns a new instance of Bank.
5 6 7 8 9 10 |
# File 'lib/turkish_banks/bank.rb', line 5 def initialize(bank) @name = bank["bAd"] @code = bank["bKd"] @city = bank["bIlAd"] @address = bank["adr"] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/turkish_banks/bank.rb', line 3 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/turkish_banks/bank.rb', line 3 def city @city end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/turkish_banks/bank.rb', line 3 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/turkish_banks/bank.rb', line 3 def name @name end |