class Twilio::TwiML::Connect
<Connect> TwiML
Verb
Public Class Methods
new(**keyword_args) { |self| ... }
click to toggle source
Calls superclass method
Twilio::TwiML::TwiML::new
# File lib/twilio-ruby/twiml/voice_response.rb 1123 def initialize(**keyword_args) 1124 super(**keyword_args) 1125 @name = 'Connect' 1126 1127 yield(self) if block_given? 1128 end
Public Instance Methods
autopilot(name, **keyword_args)
click to toggle source
Create a new <Autopilot> element
- name
-
Autopilot
assistant sid or unique name - keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 1143 def autopilot(name, **keyword_args) 1144 append(Autopilot.new(name, **keyword_args)) 1145 end
room(name, participant_identity: nil, **keyword_args)
click to toggle source
Create a new <Room> element
- name
-
Room
name - participant_identity
-
Participant identity when connecting to the
Room
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 1135 def room(name, participant_identity: nil, **keyword_args) 1136 append(Room.new(name, participant_identity: participant_identity, **keyword_args)) 1137 end
stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args) { |stream| ... }
click to toggle source
Create a new <Stream> element
- name
-
Friendly name given to the
Stream
- connector_name
-
Unique name for
Stream
Connector - url
-
URL of the remote service where the
Stream
is routed - track
-
Track to be streamed to remote service
- status_callback
-
Status Callback URL
- status_callback_method
-
Status Callback URL method
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 1156 def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args) 1157 stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args) 1158 1159 yield(stream) if block_given? 1160 append(stream) 1161 end
virtual_agent(connector_name: nil, language: nil, sentiment_analysis: nil, status_callback: nil, **keyword_args)
click to toggle source
Create a new <VirtualAgent> element
- connector_name
-
Defines the conversation profile Dialogflow needs to use
- language
-
Language to be used by Dialogflow to transcribe speech
- sentiment_analysis
-
Whether sentiment analysis needs to be enabled or not
- status_callback
-
URL to post status callbacks from
Twilio
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 1170 def virtual_agent(connector_name: nil, language: nil, sentiment_analysis: nil, status_callback: nil, **keyword_args) 1171 append(VirtualAgent.new(connector_name: connector_name, language: language, sentiment_analysis: sentiment_analysis, status_callback: status_callback, **keyword_args)) 1172 end