Sha256: 76a806f6621baa8673c306dcd5ee431d65b684d657fde311552b277b0a118f5a

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

module TurkishBanks
  class Branch < TurkishBank
    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_code     = branch["sIlKd"]
      @city          = branch["sIlAd"]
      @district_code = branch["sIlcKd"]
      @district      = branch["sIlcAd"]
      @phone         = branch["tlf"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
turkish_banks-0.6.0 lib/turkish_banks/branch.rb