Class: Adhearsion::Console::InteractiveController

Inherits:
Adhearsion::CallController show all
Defined in:
lib/adhearsion/console.rb

Constant Summary

Constants included from Adhearsion::CallController::Record

Adhearsion::CallController::Record::RecordError

Constants included from Adhearsion::CallController::Output

Adhearsion::CallController::Output::NoDocError, Adhearsion::CallController::Output::PlaybackError

Instance Attribute Summary

Attributes inherited from Adhearsion::CallController

#call, #metadata

Instance Method Summary collapse

Methods inherited from Adhearsion::CallController

#answer, #bg_exec, #eql?, exec, #exec, #exec_with_callback, #hard_pass, #initialize, #invoke, #join, #logger, #method_missing, mixin, #mute, #pass, #redirect, #reject, #stop_all_components, #unmute

Methods included from Adhearsion::CallController::Record

#record

Methods included from Adhearsion::CallController::Output

#interruptible_play, #output_formatter, #play, #play!, #play_audio, #play_audio!, #play_document, #play_document!, #play_numeric, #play_numeric!, #play_time, #play_time!, #say, #say!, #say_characters, #say_characters!

Methods included from Adhearsion::CallController::Input

#ask, #menu

Methods included from Adhearsion::CallController::Dial

#dial, #dial_and_confirm

Constructor Details

This class inherits a constructor from Adhearsion::CallController

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Adhearsion::CallController

Instance Method Details

#hangup(*args) ⇒ Object


158
159
160
161
# File 'lib/adhearsion/console.rb', line 158

def hangup(*args)
  super
  exit
end

#runObject


152
153
154
155
156
# File 'lib/adhearsion/console.rb', line 152

def run
  logger.debug "Starting interactive controller"
  pry
  logger.debug "Interactive controller finished"
end