RoxasShadow / money-coinmarketcap-bank

CoinMarketCap frontend for ruby-money

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

money-coinmarketcap-bank

CoinMarketCap frontend for ruby-money

Attach this gem to ruby-money to use it as bank and get the exchange rate from coinmarketcap.com.

This gem is basically a clone of money-uphold-bank. All the credits go to its creators.

Usage

# Minimal requirements
require 'money/bank/coin_market_cap'

bank = Money::Bank::CoinMarketCap.new

# (optional)
# Set the number of seconds after which the rates are automatically expired.
# By default, they expire every hour
bank.ttl_in_seconds = 3600

Money.default_bank = bank

About

CoinMarketCap frontend for ruby-money


Languages

Language:Ruby 100.0%