rest_countries
A Crystal wrapper for the Rest Countries API.
Installation
-
Add the dependency to your
shard.yml
:dependencies: rest_countries: github: HCLarsen/rest_countries
-
Run
shards install
Usage
require "rest_countries"
canada = RestCountries.getCountryByCode("CAN")
canada.capital #=> "Ottawa"
Contributing
- Fork it (https://github.com/HCLarsen/rest_countries/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
Contributors
- Chris Larsen - creator and maintainer