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::DevJumps

Stealth::Controller::DevJumps::DEV_JUMP_REGEX

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_message, #current_service, #current_session_id, #flow_controller, #nlp_result, #pos

Instance Method Summary collapse

Methods inherited from BotController

#route

Methods inherited from Stealth::Controller

#action, #current_session, #do_nothing, #halt!, #has_attachments?, #has_location?, #initialize, #previous_session, #progressed?, #route, #set_back_to, #step_back, #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



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

def level1
  send_replies

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