0.0
No commit activity in last 3 years
No release in over 3 years
Adds crypto currency support to the Money gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 6.1.1
 Project Readme

money-altcoin

Adds crypto currency support to the Money gem.

Installation

Install money-altcoin with:

gem install money-altcoin

Usage

Very simple. All that this gem really does is add crypto currencies via Money's Currency.register() method. All you need to do is:

require 'money-altcoin'

This will require Money, and set it up to support crypto currencies.

Now, you can use it, like:

m=Money.new(1234, 'DOGE')
m.bank.add_rate('DOGE', 'PPC', 10.2345)
m.exchange_to('PPC')