Module: TwilioTestToolkit::DSL

Defined in:
lib/twilio-test-toolkit/dsl.rb

Overview

Adds the ‘ttt_call` method to the top-level namespace.

Instance Method Summary collapse

Instance Method Details

#ttt_call(initial_path, from_number, to_number, options = {}) ⇒ Object

Initiate a call. Options:

  • :method - specify the http method of the initial api call

  • :call_sid - specify an optional fixed value to be passed as params

  • :is_machine - controls params



10
11
12
13
# File 'lib/twilio-test-toolkit/dsl.rb', line 10

def ttt_call(initial_path, from_number, to_number, options = {})
  # Make a new call in progress
  return CallInProgress.new(initial_path, from_number, to_number, options)
end