A lib and endpoint to quickly exchange between Europeans currencies and EUR.
run rvm use --create --ruby-version ruby-2.4.2@ER
to setup ruby versions.
Clone the repo git clone git@github.com:ahmgeek/ex.git
run bundler
in the root of the project dir.
thin start
From browser:
localhost:3000
localhost:3000/convert?currency=SEK&value=32423
The lib/scrapper.rb
is executable, and can be added to cronjob,
better to use it in background job.
run rspec
from the root dir of the project.
The 90 day European Central Bank only provides ER against Euro only, hence, the lib is limited to change between currencies and Euro.