Class: TurkishBanks::Branch
- Inherits:
-
Object
- Object
- TurkishBanks::Branch
- Defined in:
- lib/turkish_banks/branch.rb
Instance Attribute Summary collapse
-
#bank_code ⇒ Object
readonly
Returns the value of attribute bank_code.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#city_code ⇒ Object
readonly
Returns the value of attribute city_code.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#district ⇒ Object
readonly
Returns the value of attribute district.
-
#district_code ⇒ Object
readonly
Returns the value of attribute district_code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
Instance Method Summary collapse
-
#initialize(branch_params) ⇒ Branch
constructor
A new instance of Branch.
Constructor Details
#initialize(branch_params) ⇒ Branch
Returns a new instance of Branch.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/turkish_banks/branch.rb', line 6 def initialize(branch_params) @name = branch_params['sAd'] @code = branch_params['sKd'] @bank_code = branch_params['bKd'] @city_code = branch_params['sIlKd'] @city = branch_params['sIlAd'] @district_code = branch_params['sIlcKd'] @district = branch_params['sIlcAd'] @phone = branch_params['tlf'] end |
Instance Attribute Details
#bank_code ⇒ Object (readonly)
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 (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def city @city end |
#city_code ⇒ Object (readonly)
Returns the value of attribute city_code.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def city_code @city_code end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def code @code end |
#district ⇒ Object (readonly)
Returns the value of attribute district.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def district @district end |
#district_code ⇒ Object (readonly)
Returns the value of attribute district_code.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def district_code @district_code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
3 4 5 |
# File 'lib/turkish_banks/branch.rb', line 3 def phone @phone end |