Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

currency_converter_cis

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency_converter_cis

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

currency_converter_cis

With the use to this gem , The two major issues will be solved the first one is to find out the various country related details using either the country code or the ip-address and the second one is to convert an amount from one currency to another, There are various scenarios where user has to show user locale related information based up on his/her ip-address So in those cases this gem will be really useful.

INSTALLTION

First thing you need to do is the installation , you can follow the below mentioned steps to install the gem inside your rails application. You need to add sudo if you are not using rvm(ruby version manager)

gem install currency_converter_cis

Add this following line in your Gemfile and then run bundle install.

gem 'currency_converter_cis' 

USAGE

Once you have installed this gem you can do the following :-

  1. Country Code : "IN" is the contry code
CurrencyConverterCis.country_by_code("IN")
  1. Ip-Address :
CurrencyConverterCis.country_by_ip("xx.xx.xx.xx")
  1. Contry Converter : If you wanted to convert US dollars to Indian National Rupees here 1000 is the amount.
CurrencyConverterCis.exchange(1000, 'USD', 'INR')

FAQs

Package last updated on 04 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc