open-weather-map
A gem wrapper for the OpenWeatherMap API.
Installation
Add this line to your application's Gemfile:
gem 'open_weather_map'
And then execute:
$ bundle
Or install it yourself as:
$ gem install open_weather_map
Usage
Quick Start:
OpenWeatherMap.city("London").forecast
OpenWeatherMap.city_id(524901).forecast
OpenWeatherMap.geolocate(lat: 45.321, lng: 34201).forecast
OpenWeatherMap.geolocate(ObjectThatRespondsToLatAndLngMethods).forecast
Contributing
- Fork it ( https://github.com/pdebelak/open-weather-map/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