Class: Botomizer::Handler
- Inherits:
-
Object
- Object
- Botomizer::Handler
- Defined in:
- lib/botomizer/handler.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #cmd_fallback ⇒ Object
-
#initialize(client) ⇒ Handler
constructor
A new instance of Handler.
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
#client ⇒ Object (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_fallback ⇒ Object
8 9 10 |
# File 'lib/botomizer/handler.rb', line 8 def cmd_fallback @client.('Command not found or incorrect. Type /help for more information.') end |