Method: Twilio::TwiML::VoiceResponse#gather
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
#gather(input: nil, action: nil, method: nil, timeout: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, **keyword_args) {|gather| ... } ⇒ Object
Create a new <Gather> element
- input
-
Input type Twilio should accept
- action
-
Action URL
- method
-
Action URL method
- timeout
-
Time to wait to gather input
- finish_on_key
-
Finish gather on key
- num_digits
-
Number of digits to collect
- partial_result_callback
-
Partial result callback URL
- partial_result_callback_method
-
Partial result callback URL method
- language
-
Language to use
- hints
-
Speech recognition hints
- barge_in
-
Stop playing media upon speech
- keyword_args
-
additional attributes
77 78 79 80 81 82 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 77 def gather(input: nil, action: nil, method: nil, timeout: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, **keyword_args) gather = Gather.new(input: input, action: action, method: method, timeout: timeout, finish_on_key: finish_on_key, num_digits: num_digits, partial_result_callback: partial_result_callback, partial_result_callback_method: partial_result_callback_method, language: language, hints: hints, barge_in: , **keyword_args) yield(gather) if block_given? append(gather) end |