VAT Rates
VAT rates based on the ec.europa.eu website list. This gem parses information on the website and provides interface to the data.
Installation
Add this line to your application's Gemfile
:
gem 'vat_rates'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vat_rates
Usage
To get current VAT rates from ec.europa.eu, just invoke following command:
VatRates.fetch
Load from file or fetch from server:
VatRates.load(filepath = nil)
Save to json file:
VatRates.save(filepath)
Contributing
- Fork it ( https://github.com/dmitry/vat_rates/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request