All Projects → enderahmetyurt → turkish_banks

enderahmetyurt / turkish_banks

Licence: MIT license
All Turkish Banks and Their Branches

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to turkish banks

strings-ansi
Handle ANSI escape codes in strings
Stars: ✭ 17 (-39.29%)
Mutual labels:  rubygem
cli-rubygem
Command line interface for interacting with Civo's cloud API
Stars: ✭ 15 (-46.43%)
Mutual labels:  rubygem
smart-cnab
A package for general manipulation of CNAB files, generation of remittances and parsing of returns using a normalized fields structure.
Stars: ✭ 11 (-60.71%)
Mutual labels:  bank
pyitau
Unofficial client to access your Itaú bank data
Stars: ✭ 28 (+0%)
Mutual labels:  bank
ruby terraform
A simple Ruby wrapper for invoking terraform commands.
Stars: ✭ 92 (+228.57%)
Mutual labels:  rubygem
sidekiq queue metrics
Records stats of each sidekiq queue and exposes APIs to retrieve them
Stars: ✭ 29 (+3.57%)
Mutual labels:  rubygem
phpwaf-phanalyzer
AliGuard PHP WAF
Stars: ✭ 12 (-57.14%)
Mutual labels:  turkish
strings-case
Convert strings between different cases.
Stars: ✭ 65 (+132.14%)
Mutual labels:  rubygem
mt940-rs
A MT940 parser in Rust
Stars: ✭ 19 (-32.14%)
Mutual labels:  bank
language-detector
Detect the language of text
Stars: ✭ 28 (+0%)
Mutual labels:  turkish
TurkeyStartup
Türkiye 'de ki Melek Yatırımcı Listesi
Stars: ✭ 30 (+7.14%)
Mutual labels:  turkish
yii2-bankcard-info
银行卡卡号分析(Yii2扩展)
Stars: ✭ 15 (-46.43%)
Mutual labels:  bank
material-sass
A rubygem of Material Design for Bootstrap 4
Stars: ✭ 55 (+96.43%)
Mutual labels:  rubygem
itunes receipt validator
Validate iTunes Transaction and Unified style receipts with local decoding and remote validation.
Stars: ✭ 38 (+35.71%)
Mutual labels:  rubygem
backend-best-practices
Backend uygulamaları geliştirirken dikkate alınabilecek örnek yöntemlerin derlendiği güncellenen bir kaynak.
Stars: ✭ 80 (+185.71%)
Mutual labels:  turkish
dkdeploy-typo3-cms
dkdeploy-typo3-cms provides functionality for fully automated deployments targeting TYPO3 CMS applications
Stars: ✭ 16 (-42.86%)
Mutual labels:  rubygem
py-persian-tools
An anthology of a variety of tools for the Persian language in Python
Stars: ✭ 106 (+278.57%)
Mutual labels:  bank
gb banking
FiveM Extended Banking Script
Stars: ✭ 14 (-50%)
Mutual labels:  bank
dry-logger
[WIP] Logging library
Stars: ✭ 16 (-42.86%)
Mutual labels:  rubygem
honey format
Makes working with CSVs as smooth as honey.
Stars: ✭ 13 (-53.57%)
Mutual labels:  rubygem

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

# Gets last update date
TurkishBanks::LAST_UPDATE

# Gets all banks
TurkishBanks.banks

# Create a bank from its name
bank = TurkishBanks::Bank.new("türkiye cumhuriyeti ziraat bankası a.ş.")
bank.name # => "TÜRKİYE CUMHURİYETİ ZIRAAT BANKASI A.Ş."

# Get a collection of branch objects
branches = bank.branches
branches.first.name # => "MERKEZ/ANKARA ŞUBESİ"
branches.size       # => 1791

Exception Handling

If you pass the wrong bank name to Bank#new, it raises TurkishBanks::BankNotFoundError exception. You can rescue this error, then do something else.

begin
  TurkishBanks::Bank.new('fake bank')
rescue TurkishBanks::BankNotFoundError
  # do something here
end

TODO

  • Improve search part.
  • New features. Please send some pull-request.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].