CsvCountrySelector
List of countries and depending shortnames of an SAP Server to Match human readable names.
Installation
Add this line to your application's Gemfile:
gem 'csv_country_selector'
And then execute:
$ bundle
Or install it yourself as:
$ gem install csv_country_selector
Usage
CsvCountrySelector::Country.short_name_for("Deutschland") => "DE"
CsvCountrySelector::Country.long_name_for("de") => "Deutschland"
CsvCountrySelector::Country.long_list => ["Deutschland", "USA", ..]
CsvCountrySelector::Country.short_list => ["DE", "AT", ..]
CsvCountrySelector::Country.codes => {:de => "Deutschland", :at => "Österreich", ...}
Contributing
- Fork it ( https://github.com/[my-github-username]/csv_country_selector/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