Class: PingHandler

Inherits:
Lokii::Handler show all
Defined in:
lib/lokii/handlers/ping_handler.rb

Instance Attribute Summary

Attributes inherited from Lokii::Handler

#message, #server

Instance Method Summary collapse

Methods inherited from Lokii::Handler

#complete, #halt, #handle, #initialize, #reply

Constructor Details

This class inherits a constructor from Lokii::Handler

Instance Method Details

#processObject



2
3
4
5
# File 'lib/lokii/handlers/ping_handler.rb', line 2

def process
  Lokii::Logger.debug "Processing message with the ping handler"
  reply "pong" and complete if message[:text].downcase == "ping"
end