Class: Responders::Reset
- Inherits:
-
ApplicationResponder
- Object
- Bot::Responder
- ApplicationResponder
- Responders::Reset
- Defined in:
- lib/generators/bot/install/templates/reset_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
3 4 5 |
# File 'lib/generators/bot/install/templates/reset_responder.rb', line 3 def can_handle? ("Reset!") end |
#handle ⇒ Object
7 8 9 10 |
# File 'lib/generators/bot/install/templates/reset_responder.rb', line 7 def handle user.destroy text_response('Resetting..') end |