lib/turkish_banks/bank.rb in turkish_banks-0.3.0 vs lib/turkish_banks/bank.rb in turkish_banks-0.4.0

- old
+ new

@@ -1,9 +1,9 @@ module TurkishBanks class Bank < TurkishBank attr_accessor :name, :code, :city, :address - - def initialize bank + + def initialize(bank) @name = bank["bAd"] @code = bank["bKd"] @city = bank["bIlAd"] @address = bank["adr"] end \ No newline at end of file