Class: Ruboty::Handlers::TenkiJp

Inherits:
Base
  • Object
show all
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(message = {})
  message.reply(
    ::TenkiJp::Forecast.new(message[:location]).to_s
  )
rescue
  message.reply('Unknow error. (Perhaps unknow location?)')
end