Module: CucumberVoIP::API

Defined in:
lib/cucumber-voip/api.rb

Instance Method Summary collapse

Instance Method Details

#audio_ssml(url) ⇒ Object



23
24
25
# File 'lib/cucumber-voip/api.rb', line 23

def audio_ssml(url)
  "<audio src='#{url}' />"
end

#cleanup_callsObject



7
8
9
# File 'lib/cucumber-voip/api.rb', line 7

def cleanup_calls
  RayoDriver.cleanup_calls
end

#dial(options = {}) ⇒ Object



19
20
21
# File 'lib/cucumber-voip/api.rb', line 19

def dial(options = {})
  RayoDriver.dial options
end

#dtmf_ssml(digit) ⇒ Object



27
28
29
# File 'lib/cucumber-voip/api.rb', line 27

def dtmf_ssml(digit)
  audio_ssml "dtmf:#{digit}"
end

#standard_caller_idObject



11
12
13
# File 'lib/cucumber-voip/api.rb', line 11

def standard_caller_id
  RayoDriver.options[:standard_caller_id]
end

#standard_dial_targetObject



15
16
17
# File 'lib/cucumber-voip/api.rb', line 15

def standard_dial_target
  RayoDriver.options[:standard_dial_target]
end

#start_rayo_driverObject



3
4
5
# File 'lib/cucumber-voip/api.rb', line 3

def start_rayo_driver
  RayoDriver.start
end