TurkishBanks

Gem Version Code Climate

Fetch all banks and their information from http://www.tcmb.gov.tr/.

Installation

Add this line to your application's Gemfile:

gem 'turkish_banks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install turkish_banks

Usage

# Creates a TurkishBank object
turkish_bank = TurkishBanks::TurkishBank.new

# Gets last update date
turkish_bank.last_update_date

# Gets all banks
turkish_bank.banks

# Returns a bank object
bank = turkish_bank.get_information_of "türkiye cumhuriyeti ziraat bankası a.ş."
bank.name # => TÜRKİYE CUMHURİYETİ ZIRAAT BANKASI A.Ş.

# Returns a collection of branch objectes
branches = turkish_bank.get_branches_of "türkiye cumhuriyeti ziraat bankası a.ş."
branches.first.name # => "ANKARA ŞUBESİ"

TODO

  • Improve search part.
  • New features. Please send some pull-request.