Registry / networking / money-open-exchange-rates

money-open-exchange-rates

JSON →
library2.0.1rbrubygemsunverified

A gem that calculates exchange rates using published rates from open-exchange-rates, compatible with the money gem.

gem install money-open-exchange-rates
INSTALL
IMPORT
SIG · MONEY-OPEN-EXCHANG
M
money-open-exchange-rates
networkingrubyv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Money
require 'money-open-exchange-rates'

Convert USD to EUR using Open Exchange Rates.

require 'money-open-exchange-rates' Money.default_bank = Money::Bank::OpenExchangeRates.new('APP_ID') puts Money.new(100, 'USD').exchange_to('EUR')
Debug
Known issues
gotchaRequires an API key from open-exchange-rates.
fix
Obtain a free or paid API key and pass it as 'APP_ID'.
affects: >= 2.0.0
Upgrade
Version history
2.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
money-open-exchange-rates — gem install money-open-exchange-rates · libregistry