Class: Botomizer::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/botomizer/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Handler

Returns a new instance of Handler.



4
5
6
# File 'lib/botomizer/handler.rb', line 4

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



2
3
4
# File 'lib/botomizer/handler.rb', line 2

def client
  @client
end

Instance Method Details

#cmd_fallbackObject



8
9
10
# File 'lib/botomizer/handler.rb', line 8

def cmd_fallback
  @client.send_message('Command not found or incorrect. Type /help for more information.')
end