No commit activity in last 3 years
No release in over 3 years
Currency conversion gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.7.5
~> 1.6.7
 Project Readme

currency_conversion_777

Installation

gem install currency_conversion

Usage

For usage just include the include CurrencyConversion::Mode in the model you want to convert the currency. For example,

  class User
     include CurrencyConversion::Model
     conversion_field :credit
     def credit
      50
     end
  end
  @user.credit_to "gbp" # This covert the value in the great britain pound.
  @user.credit_to "gbp", "eur" # This covert the value in the euro to great britain pound.  

For simple ruby just do as follows,

     include CurrencyConversion::InstanceMethods
     make_transaction(ammount, from, to) # Ammount is the value to be converted whereas from and to are currencies.

List of the Currency

AED
ANG
ARS
AUD
BGN
BHD
BND
BOB
BRL
BWP
CAD
CHF
CLP
CNY
COP
CRC
CZK
DKK
DOP
DZD
EEK
EGP
EUR
FJD
GBP
HKD
HNL
HRK
HUF
IDR
ILS
INR
JMD
JOD
JPY
KES
KRW
KWD
KYD
KZT
LBP
LKR
LTL
LVL
MAD
MDL
MKD
MUR
MXN
MYR
NAD
NGN
NIO
NOK
NPR
NZD
OMR
PEN
PGK
PHP
PKR
PLN
PYG
QAR
RON
RSD
RUB
SAR
SCR
SEK
SGD
SKK
SLL
SVC
THB
TND
TRY
TTD
TWD
TZS
UAH
UGX
USD
UYU
UZS
VND
YER
ZAR
ZMK

Default

The currency is us dollars and it is using google currency api's.