Add this line to your application's Gemfile:
gem 'EGP_Rates'
And then execute:
$ bundle
Or install it yourself as:
$ gem install EGP_Rates
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
bundle install
bundle exec rake spec
(local testing and live)bundle exec rake spec_live
(or bundle exec rspec -t live
)bundle exec rake spec_local
(or bundle exec rspec -t ~live
)bundle exec rake rubocop
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.
bundle exec rake rubocop
)chmod +x pre-commit && cp pre-commit .git/hooks/
The project is available as open source under the terms of the MIT License