Class: TurkishBanks::Branch
- Inherits:
-
TurkishBank
- Object
- TurkishBank
- TurkishBanks::Branch
- Defined in:
- lib/turkish_banks/branch.rb
Constant Summary
Constants inherited from TurkishBank
Instance Attribute Summary collapse
-
#bank_code ⇒ Object
Returns the value of attribute bank_code.
-
#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(branch) ⇒ Branch
constructor
A new instance of Branch.
Methods inherited from TurkishBank
#get_branches_of, #get_information_of
Constructor Details
#initialize(branch) ⇒ Branch
5 6 7 8 9 10 |
# File 'lib/turkish_banks/branch.rb', line 5 def initialize(branch) @name = branch["sAd"] @code = branch["sKd"] @bank_code = branch["bKd"] @city = branch["bIlAd"] end |
Instance Attribute Details
#bank_code ⇒ Object
Returns the value of attribute bank_code.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def bank_code @bank_code end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def city @city end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def name @name end |