lib/twilio-ruby/twiml/voice_response.rb in twilio-ruby-5.14.0 vs lib/twilio-ruby/twiml/voice_response.rb in twilio-ruby-5.14.1

- old
+ new

@@ -91,13 +91,14 @@ # 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 + # debug:: Allow debug for gather # keyword_args:: additional attributes - def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: 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, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, 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: barge_in, **keyword_args) + def gather(input: nil, action: nil, method: nil, timeout: nil, speech_timeout: nil, max_speech_time: nil, profanity_filter: nil, finish_on_key: nil, num_digits: nil, partial_result_callback: nil, partial_result_callback_method: nil, language: nil, hints: nil, barge_in: nil, debug: nil, **keyword_args) + gather = Gather.new(input: input, action: action, method: method, timeout: timeout, speech_timeout: speech_timeout, max_speech_time: max_speech_time, profanity_filter: profanity_filter, 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: barge_in, debug: debug, **keyword_args) yield(gather) if block_given? append(gather) end @@ -771,12 +772,13 @@ end ## # Create a new <Room> element # name:: Room name + # participantIdentity:: Participant identity when connecting to the Room # keyword_args:: additional attributes - def room(name, **keyword_args) - append(Room.new(name, **keyword_args)) + def room(name, participantIdentity: nil, **keyword_args) + append(Room.new(name, participantIdentity: participantIdentity, **keyword_args)) end end ## # <Room> TwiML Noun \ No newline at end of file