Class: CatchAllsController

Inherits:
BotController show all
Defined in:
lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb

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 BotController

#route

Methods inherited from Stealth::Controller

#action, #current_session, #has_attachments?, #has_location?, #initialize, #previous_session, #progressed?, #route, #step_to, #step_to_at, #step_to_in, #update_session_to

Methods included from Stealth::Controller::DynamicDelay

#calculate_delay_from_text

Constructor Details

This class inherits a constructor from Stealth::Controller

Instance Method Details

#level1Object



3
4
5
6
7
8
9
10
11
# File 'lib/stealth/generators/builder/bot/controllers/catch_alls_controller.rb', line 3

def level1
  send_replies

  if fail_session.present?
    step_to session: fail_session
  else
    step_to session: previous_session - 2.states
  end
end