Method: WeatherJp.parse
- Defined in:
- lib/weather_jp.rb
.parse(query) ⇒ WeatherJp::Weather?
Request like ‘明日の東京の天気教えて’.
31 32 33 34 35 |
# File 'lib/weather_jp.rb', line 31 def parse(query) if request = RequestParser.parser(query) get(request.city).get_weather(request.day) end end |