0.0
No release in over 3 years
A small Ruby gem to convert between EUR and ITL using the fixed historical rate (1 EUR = 1936.27 ITL)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

EuroToLira

Gem Version

A simple Ruby gem for converting between Euros (EUR) and Italian Lire (ITL) using the fixed historical conversion rate (1 EUR = 1936.27 ITL).

Installation

You can install the gem via RubyGems once it is released:

$ gem install euro_to_lira

Or, Add it to your Gemfile:

gem 'euro_to_lira'

Then run:

$ bundle install

If you want to use it directly from GitHub:

gem 'euro_to_lira', git: 'https://github.com/rafaelmerlotto/euro_to_lira.git'

Usage

require 'euro_to_lira'

EuroToLira.to_lira(10)    # => 19362.7
EuroToLira.to_euro(1936)  # => 1.0

# Raises an error for invalid input
EuroToLira.to_lira("10")  # => ArgumentError

Development

$ bin/setup      # Install dependencies
$ rake spec      # Run tests
$ bin/console    # Interactive console for experimentation

To install the gem locally:

$ bundle exec rake install

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rafaelmerlotto/euro_to_lira. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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

Code of Conduct

Everyone interacting in the EuroToLira project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.