lib/turkish_banks/branch.rb in turkish_banks-0.5.0 vs lib/turkish_banks/branch.rb in turkish_banks-0.6.0
- old
+ new
@@ -1,12 +1,16 @@
module TurkishBanks
class Branch < TurkishBank
- attr_accessor :name, :code, :bank_code, :city
+ attr_accessor :name, :code, :bank_code, :city_code, :city, :district_code, :district, :phone
def initialize(branch)
- @name = branch["sAd"]
- @code = branch["sKd"]
- @bank_code = branch["bKd"]
- @city = branch["bIlAd"]
+ @name = branch["sAd"]
+ @code = branch["sKd"]
+ @bank_code = branch["bKd"]
+ @city_code = branch["sIlKd"]
+ @city = branch["sIlAd"]
+ @district_code = branch["sIlcKd"]
+ @district = branch["sIlcAd"]
+ @phone = branch["tlf"]
end
end
-end
\ No newline at end of file
+end