rest_countries
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
Repository
rest_countries
Owner
Statistic
- 0
- 0
- 0
- 0
- 2
- over 3 years ago
- March 28, 2020
License
MIT License
Links
Synced at
Fri, 08 Nov 2024 02:39:51 GMT
Languages