Module: CucumberVoIP::API
- Defined in:
- lib/cucumber-voip/api.rb
Instance Method Summary collapse
- #audio_ssml(url) ⇒ Object
- #cleanup_calls ⇒ Object
- #dial(options = {}) ⇒ Object
- #dtmf_ssml(digit) ⇒ Object
- #standard_caller_id ⇒ Object
- #standard_dial_target ⇒ Object
- #start_rayo_driver ⇒ Object
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_calls ⇒ Object
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( = {}) RayoDriver.dial 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_id ⇒ Object
11 12 13 |
# File 'lib/cucumber-voip/api.rb', line 11 def standard_caller_id RayoDriver.[:standard_caller_id] end |
#standard_dial_target ⇒ Object
15 16 17 |
# File 'lib/cucumber-voip/api.rb', line 15 def standard_dial_target RayoDriver.[:standard_dial_target] end |
#start_rayo_driver ⇒ Object
3 4 5 |
# File 'lib/cucumber-voip/api.rb', line 3 def start_rayo_driver RayoDriver.start end |