Created
October 1, 2012 15:49
-
-
Save taiki45/3812620 to your computer and use it in GitHub Desktop.
weather_jp .pase sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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