Sha256: 8b2912ea988ffd6a1f24bca1bb0da5e96bc64169b44390453c0ba4bee2e84603
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
# Weather Report A Ruby library and CLI to get Japanese Weather via 天気予報 API(https://weather.tsukumijima.net/) which is compatible with Livedoor Weather Web Service. [![Build Status](https://travis-ci.org/zakuni/weather-report.png)](https://travis-ci.org/zakuni/weather-report) ## Installation Add this line to your application's Gemfile: gem 'weather-report' And then execute: $ bundle Or install it yourself as: $ gem install weather-report ## Usage ```ruby require 'weather-report' # for easy use tokyo = WeatherReport.get("東京") tokyo.today.telop # => "晴れ" # or you can write like this id = WeatherReport::Weather.request_cityid("東京") weather = WeatherReport::Weather.new(id) weather.tomorrow.date # => <Date: 2013-05-04 ((2456417j,0s,0n),+0s,2299161j)> weather.tomorrow.telop # => "雨" weather.tomorrow.temperature_min # => 12 ``` for more info, see http://rubydoc.info/gems/weather-report ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
weather-report-0.4.2 | README.md |
weather-report-0.4.1 | README.md |
weather-report-0.4.0 | README.md |