Sha256: 78463f0f5a520f8db551a6d2b1bfc13e474356b84c76f8c9b63197fbbb90ca7a

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

# TurkishBanks 

[![Gem Version](https://badge.fury.io/rb/turkish_banks.svg)](http://badge.fury.io/rb/turkish_banks)
[![Code Climate](https://codeclimate.com/github/enderahmetyurt/turkish_support/badges/gpa.svg)](https://codeclimate.com/github/enderahmetyurt/turkish_support)

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

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'turkish_banks'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install turkish_banks

## Usage

```ruby
# 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.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
turkish_banks-0.6.0 README.md