0.0
No commit activity in last 3 years
No release in over 3 years
Convert any number to current or specific currency
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 1.8
~> 10.0
~> 3.0

Runtime

~> 1.8
 Project Readme

AZNConverter Gem Version Build Status

Easy to use AZN converter. You can convert any currency to AZN and its word form.

Installation

Add this line to your application's Gemfile:

gem 'azn_converter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install azn_converter

Usage

At below you see basic usage. By default it converts from USD

  require 'azn_converter'

  5.to_azn #=> 8.5 with current currency

You can specify currency yourself if you doesn't have internet connection

  5.to_azn(current: 0.78) #=> 3.900...

By default we use to convert USD. It can be change by :from parameter

  5.to_azn(from: :eur) #=> 9.68

Use :sign to add manat symbol to end of the returned value

  5.to_azn(sign: true) #=> "8.5 ₼"

You can get word for of the conversion with :words option

  5.to_azn(words: true) #=> "səkkiz manat əlli qəpik"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/0x2C6/azn-converter.

License

The gem is available as open source under the terms of the MIT License.