a14m / EGP-Rates

EGP exchange rate scraper from EG Banks
MIT License
11 stars 5 forks source link
currency-exchange-rates egypt

EGPRates

wercker status Code Climate Test Coverage LICENSE

CLI available here

Installation

Add this line to your application's Gemfile:

gem 'EGP_Rates'

And then execute:

$ bundle

Or install it yourself as:

$ gem install EGP_Rates

Usage

require 'egp_rates'
# All Available Banks Data (Threaded execution)
# For all the currencies that the currently showing on their pages
EGPRates.exchange_rates

# All Available Banks Data about specific currency
# (by default it caches the response for later use)
EGPRates.exchange_rate :USD        # call and cache response
EGPRates.exchange_rate :eur        # from cached response
EGPRates.exchange_rate :EUR, false # refresh cache

# Specific Bank Data
EGPRates::CBE.new.exchange_rates
EGPRates::NBE.new.exchange_rates
EGPRates::CIB.new.exchange_rates
EGPRates::AAIB.new.exchange_rates
EGPRates::BanqueDuCaire.new.exchange_rates
EGPRates::BanqueMisr.new.exchange_rates
EGPRates::SuezCanalBank.new.exchange_rates
EGPRates::AlBarakaBank.new.exchange_rates
EGPRates::AlAhliBankOfKuwait.new.exchange_rates
EGPRates::MIDB.new.exchange_rates
EGPRates::UBE.new.exchange_rates
EGPRates::CAE.new.exchange_rates
EGPRates::EDBE.new.exchange_rates
EGPRates::AlexBank.new.exchange_rates
EGPRates::Blom.new.exchange_rates
EGPRates::ADIB.new.exchange_rates
EGPRates::EGB.new.exchange_rates
EGPRates::NBG.new.exchange_rates

Development

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mad-raz/EGP-Rates

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The project is available as open source under the terms of the MIT License