Sha256: 42142eb38eccd9059a877a93322676a08e758fb78a1120bfe3fd4d82b8795997

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

# -*- coding:utf-8 -*-
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)

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
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
weather_pinpoint_jp-0.0.5 sample/postalcode.rb
weather_pinpoint_jp-0.0.4 sample/postalcode.rb
weather_pinpoint_jp-0.0.3 sample/postalcode.rb
weather_pinpoint_jp-0.0.2 samples/postalcode.rb
weather_pinpoint_jp-0.0.1 samples/postalcode.rb