Project

tannenbaum

0.0
No commit activity in last 3 years
No release in over 3 years
Tannenbaum is a tool for querying currency informal exchange rates.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0

Runtime

 Project Readme

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