0.0
No commit activity in last 3 years
No release in over 3 years
A really easy interface to the Xurrency API. It's Ruby 1.8, 1.9 and JRuby compatible
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
>= 1.3.0
>= 1.4.0
>= 2.0.0.beta.20

Runtime

>= 0.1.8
 Project Readme

simple_xurrency¶ ↑

A really easy interface to the Xurrency API. It’s Ruby 1.8, 1.9 and JRuby compatible. This gem is a fork from simple_currency, made by Codegram.

Usage¶ ↑

Just require it and all your numeric stuff gets this fancy DSL for free:

30.eur.to_usd
# => 38.08

150.eur.to_usd
# => 190.4
239.usd.to_eur
# => 187.98

1.eur.to_usd_updated_at
# => Fri Oct 08 22:54:00 UTC 2010

If you have a Xurrency API key, you can add it by doing:

SimpleXurrency.key = 'write_your_api_key'

If you want to find out how to adquire an API key, please go to xurrency.com/license

Installation¶ ↑

Rails 3¶ ↑

In your Gemfile:

gem "simple_xurrency"

Not using Rails?¶ ↑

Then you have to manually install the gem:

gem install simple_xurrency

And manually require it as well:

require "simple_xurrency"

License¶ ↑

See LICENSE for details.