Giter Club home page Giter Club logo

exchanger's Introduction

Exchanger

Gem works with exchange rates of the National Bank of Ukraine and the Central Bank of The Russian Federation

Installation

Add this line to your application's Gemfile:

gem 'exchanger'

And then execute:

$ bundle

Or install it yourself as:

$ gem install exchanger

Usage

Public methods

update_from(country, full) - get information of exchange rates in country

updated? - get true if exchange rates are updated, else return false

get_information_about(code) - get information about specific currency

get_name_of(code, language) - get name of specific currency in English(:en), Russian(:ru) or Ukrainian(:ua)

get_base_of(code) - get base country of rates

get_unit_cost_of(code) - get unit cost of specific currency

get_all_currencies - get information about all currncies

get_date_of_update(code) - get date of update information about specific currency

show_like_table - write in terminal simple table with information about all currencies

convert_from_base_to(code, value) - convert value in base to value in specific currency

convert_to_base_from(code, value) - convert value in specific to value in base currency

convert(code_initial, value_initial, code_final) - convert value between two currencies

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

exchanger's People

Watchers

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.