Sha256: de41b081d62747dc97609017f64f62c0025f22bfa33c082a0945e282ac146ad2

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 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.

## Contributing

1. Fork it ( https://github.com/[my-github-username]/turkish_banks/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
turkish_banks-0.5.0 README.md
turkish_banks-0.4.0 README.md
turkish_banks-0.3.0 README.md
turkish_banks-0.2.0 README.md