Skip to content

Instantly share code, notes, and snippets.

@taiki45
Created October 1, 2012 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taiki45/3812620 to your computer and use it in GitHub Desktop.
Save taiki45/3812620 to your computer and use it in GitHub Desktop.
weather_jp .pase sample
require 'weather_jp'
WeatherJp.parse "東京の今日の天気"
#=> #<DayWeather:@city_name = 東京都 東京, @day=今日, @forecast=曇り, @max_temp=25, @min_temp=20, @rain=30>
WeatherJp.parse("今日のうどん県の天気教えて下され〜〜").to_s
#=> "香川県 高松の今日の天気は曇のち晴 最高気温25度 最低気温17度 降水確率は20% です。"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment