Skip to content

Tannenbaum is an experimental tool for querying currency informal exchange rates.

License

Notifications You must be signed in to change notification settings

svankie/tannenbaum

Repository files navigation

Build Status Gem Version

Tannenbaum

Tannenbaum is an experimental tool for querying currency informal exchange rates.

Warning: Tannenbaum currently works only retrieving black-market exchange rates from USD (United States dollars) to ARS (Argentinian pesos), but I'm planning to add support for other informal exchange rates in countries with vibrant currency black-markets.

Installation

Add this line to your application's Gemfile:

gem 'tannenbaum'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tannenbaum

Usage

[1] pry(main)> require 'tannenbaum'
=> true
[2] pry(main)> quoting = Tannenbaum::Quote.new
=> #<Tannenbaum::Quote:0x92993bc @provider=Tannenbaum::Providers::USD>
[3] pry(main)> rates = quoting.ask
=> #<struct Tannenbaum::ExchangeRate
      sell=10.77,
      buy=10.72,
      timestamp= #<DateTime: 2014-01-13T18:50:02+00:00 ((2456671j,67802s,0n),+0s,2299161j)>,
      provider="elDolarBlue">

Contributing

  1. Fork it
  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 new Pull Request

About

Tannenbaum is an experimental tool for querying currency informal exchange rates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages