Macedonian foreign exchange rates library for Ruby
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Guardfile
LICENSE
README.markdown
Rakefile
mkd_fx.gemspec

README.markdown

mkd_fx

Macedonian foreign exchange rates library for Ruby. Fetches latest exchange rates from major banks in Macedonia, and stores them in Redis.

Install

gem install mkd_fx

Use

require "mkd_fx"

# Update the rates for each available bank and
# store them in Redis
MkdFX.banks.each { |b| b.update_rates! }

# See when the oldest update was
MkdFX.updated_at

# Get the currencies which are supported
MkdFX.currencies

# Use your own redis
MkdFX.redis = Redis.new(ENV["REDIS_URL"])

# Get the currently-live rates for a bank
MkdFX::Banks::KomercijalnaBanka.new.live_rates!

License

Please see LICENSE for details.

Author

Vladimir Andrijevikj @vandrijevik