No release in over 3 years
Low commit activity in last 3 years
This is a direct rip/port of Money Open Exchange Rates experimental and not used in production.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.0.1
>= 2.0
>= 0
>= 0
~> 3.12
>= 1.0.4

Runtime

>= 1.7
~> 1.1.0
 Project Readme

Money Blockchain.info Exchange Rates

Blockchain.info Ruby Money exchange bank.

This is a direct rip/port of Money Open Exchange Rates. This library experimental and not used in production.

Installation

Gemfile:

gem 'blockchain-info-exchange-rates', require: 'money/bank/blockchain_info_exchange_rates'

Usage

bie = Money::Bank::BlockchainInfoExchangeRates.new
bie.cache = 'path/to/file/cache'

# If the cache is empty:
# Fetch new rates from Blockchain.info and cache
bie.save_rates

# Import rates from cache to Money Object
bie.update_rates

# Rates expire every 15 minutes
bie.ttl_in_seconds = 900

# Default Bank
config.default_bank = bie

License

The MIT License