README.md in currency_converter-1.1.1 vs README.md in currency_converter-1.1.2
- old
+ new
@@ -1,7 +1,9 @@
# CurrencyConverter
+[![Gem Version](https://badge.fury.io/rb/currency_converter.svg)](http://badge.fury.io/rb/currency_converter) [![Build Status](https://travis-ci.org/dark-prince/currency_converter.svg)](https://travis-ci.org/dark-prince/currency_converter) [![Code Climate](https://codeclimate.com/github/dark-prince/currency_converter.png)](https://codeclimate.com/github/dark-prince/currency_converter) [![Dependency Status](https://gemnasium.com/dark-prince/currency_converter.svg)](https://gemnasium.com/dark-prince/currency_converter) [![License](http://img.shields.io/license/MIT.png)](http://opensource.org/licenses/MIT) [![Coverage Status](https://coveralls.io/repos/dark-prince/currency_converter/badge.png?branch=master)](https://coveralls.io/r/dark-prince/currency_converter?branch=master)
+
Simple Ruby API to get exchange rates from currencies using Google finance currency converter and Yahoo finance currency converter. You can convert currencies directly through this library.
## Installation
Add this line to your application's Gemfile:
@@ -19,22 +21,22 @@
## Usage
To convert between two currencies using Google finance currency converter:
currency_converter = CurrencyConverter::Google.new
- currency_converter.exchange("EUR", "USD", 100)
+ currency_converter.exchange('EUR', 'USD', 100)
=> 132.89
- currency_converter.exchange("USD", "EUR", 100)
+ currency_converter.exchange('USD', 'EUR', 100)
=> 75.15
To convert between two currencies using Yahoo finance currency converter:
currency_converter = CurrencyConverter::Yahoo.new
- currency_converter.exchange("EUR", "USD", 1)
+ currency_converter.exchange('EUR', 'USD', 1)
=> 1.33
- currency_converter.exchange("USD", "EUR", 1)
+ currency_converter.exchange('USD', 'EUR', 1)
=> 0.75
## Contributing
1. Fork it