Class: BotController
- Inherits:
-
Stealth::Controller
- Object
- Stealth::Controller
- BotController
- Defined in:
- lib/stealth/generators/builder/bot/controllers/bot_controller.rb
Direct Known Subclasses
Constant Summary
Constants included from Stealth::Controller::DynamicDelay
Stealth::Controller::DynamicDelay::LONG_DELAY, Stealth::Controller::DynamicDelay::SHORT_DELAY, Stealth::Controller::DynamicDelay::STANDARD_DELAY
Instance Attribute Summary
Attributes inherited from Stealth::Controller
#action_name, #current_flow, #current_message, #current_service, #current_session_id, #current_user_id, #flow_controller
Instance Method Summary collapse
Methods inherited from Stealth::Controller
#action, #current_session, #has_attachments?, #has_location?, #initialize, #previous_session, #progressed?, #step_to, #step_to_at, #step_to_in, #update_session_to
Methods included from Stealth::Controller::DynamicDelay
Constructor Details
This class inherits a constructor from Stealth::Controller
Instance Method Details
#route ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/stealth/generators/builder/bot/controllers/bot_controller.rb', line 5 def route if current_session.present? step_to session: current_session else step_to flow: 'hello', state: 'say_hello' end end |