Giter VIP home page Giter VIP logo

tcmb_currency's Introduction

Code Climate Dependency Status

TcmbCurrency

Tcmb Currencies for Money Gem

it based on money gem, money-rails Gem, and adapted from google-currency gem

Installation

Add this line to your application's Gemfile:

gem 'money-rails'
gem 'tcmb_currency'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install tcmb_currency

Requirements

Before generating your application, you will need:

  • The Ruby language (version 1.9.3)
  • Rails 3.2

Usage

After the installing gems run:

$ rails g tcmb_currency:initializer
$ rails g tcmb_currency:migration
$ rake db:migrate

at last add to daily cron tasks this rake

$ rake tcmb_currency:insert_from_tcmb

And you can use it as

Money.new(1000,"USD").exchange_to(:EUR)
Money.new(1000,"USD").exchange_to(:EUR, "2013-03-02")

Contributing

Once you've made your great commits:

  1. Fork Gem
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

Credits

This gem is maintained and funded by lab2023 - internet technologies

Thank you to all the contributors!

The names and logos for lab2023 are trademarks of lab2023, inc.

License

MIT License

Copyright 2012 lab2023 โ€“ internet technologies

tcmb_currency's People

Contributors

hamitturkukaya avatar farukca avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.