Class: Ruboty::Handlers::TenkiJp
- Inherits:
-
Base
- Object
- Base
- Ruboty::Handlers::TenkiJp
- Defined in:
- lib/ruboty/handlers/tenkijp.rb
Instance Method Summary collapse
Instance Method Details
#tenki(message = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/ruboty/handlers/tenkijp.rb', line 8 def tenki( = {}) .reply( ::TenkiJp::Forecast.new([:location]).to_s ) rescue .reply('Unknow error. (Perhaps unknow location?)') end |