Class: Ruboty::Routers::Root

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/routers/root.rb

Instance Attribute Summary

Attributes inherited from Base

#robot

Instance Method Summary collapse

Methods inherited from Base

actions, #call, inherited, #initialize, route

Constructor Details

This class inherits a constructor from Ruboty::Routers::Base

Instance Method Details

#root(req, res) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/ruboty/routers/root.rb', line 6

def root(req, res)
  # server response
  res.write 'Ruboty::Router works!'

  # example for reaction in chat
  # robot.say(body: 'something to say', to: '#general')
end