Skip to content

victorcreed/currency_conversion_777

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages