Method: Twilio::Verb#pause
- Defined in:
- lib/twilio/verb.rb
#pause(*args) ⇒ Object
The Pause (secondary) verb waits silently for a number of seconds. It is normally chained with other verbs.
Options (see www.twilio.com/docs/api_reference/TwiML/pause) are passed in as a hash
Examples:
verb = Twilio::Verb.new { |v|
v.say 'greetings'
v.pause :length => 2
v.say 'have a nice day'
}
verb.response
264 265 266 267 |
# File 'lib/twilio/verb.rb', line 264 def pause(*args) = args.shift output { @xml.Pause() } end |