Class: Responders::Default
- Inherits:
-
ApplicationResponder
- Object
- Bot::Responder
- ApplicationResponder
- Responders::Default
- Defined in:
- lib/generators/bot/install/templates/default_responder.rb
Instance Attribute Summary
Attributes inherited from Bot::Responder
#analytics, #chat_context, #handler, #message, #responses, #user, #user_context
Instance Method Summary collapse
Methods inherited from Bot::Responder
#can_respond_to_type?, #initialize, respond_to
Constructor Details
This class inherits a constructor from Bot::Responder
Instance Method Details
#can_handle? ⇒ Boolean
5 6 7 |
# File 'lib/generators/bot/install/templates/default_responder.rb', line 5 def can_handle? true end |
#handle ⇒ Object
9 10 11 |
# File 'lib/generators/bot/install/templates/default_responder.rb', line 9 def handle text_response('Hello!') end |