Sha256: 29f882df8f6917bf0dbaed1e919be95ec337dc9493703d6db3c9980b4e9a0d99

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

Fixer
====

Fixer is a Ruby wrapper to the [current and historical foreign exchange rate feeds provided by the European Central Bank](http://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html).

I am also throwing in a *minimal* cache. Use if it suits you or implement your own.

Bonus: Use the Money gem.

Usage
-----

    # Download the daily rates.
    Fixer.daily
    
    # Download the 90-day historical rates.
    Fixer.historical_90
    
    # Download all historical rates.
    Fixer.historical
    
    # Use the built-in cache.
    cache = Fixer::Cache
    cache.to_usd
    => 1.397
    cache.base = "EUR"
    cache.to_eur
    => 0.7158
    
    # It doesn't get any simpler than this.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fixer-0.2.1 README.markdown
fixer-0.2.0 README.markdown