Sha256: 2613796099ecbf411a2d8685de7d4bf95298a03398e71edd41fc5669709e5bf5
Contents?: true
Size: 995 Bytes
Versions: 5
Compression:
Stored size: 995 Bytes
Contents
# WeatherPinpointJp weather information library for ruby ## Installation Add this line to your application's Gemfile: gem 'weather_pinpoint_jp' And then execute: $ bundle Or install it yourself as: $ gem install weather_pinpoint_jp ## Usage <pre> require 'weather_pinpoint_jp' forecast = WeatherPinpointJp.get("東京都千代田区") puts forecast.location t = forecast.start_time forecast.weather.each {|w| puts "#{t.strftime("%Y/%m/%d %H:%M")} #{w}" t += 3600 } </pre> <pre> require 'weather_pinpoint_jp' forecast = WeatherPinpointJp.get("100000", WeatherPinpointJp::POSTAL_CODE) puts forecast.location t = forecast.start_time forecast.weather.each {|w| puts "#{t.strftime("%Y/%m/%d %H:%M")} #{w}" t += 3600 } </pre> ## 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
weather_pinpoint_jp-0.0.5 | README.md |
weather_pinpoint_jp-0.0.4 | README.md |
weather_pinpoint_jp-0.0.3 | README.md |
weather_pinpoint_jp-0.0.2 | README.md |
weather_pinpoint_jp-0.0.1 | README.md |