Class: Twilio::TwiML::Connect
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
<Connect> TwiML Verb
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#autopilot(name, **keyword_args) ⇒ Object
- Create a new <Autopilot> element name
- Autopilot assistant sid or unique name keyword_args
-
additional attributes.
-
#initialize(**keyword_args) {|_self| ... } ⇒ Connect
constructor
A new instance of Connect.
-
#room(name, participantIdentity: nil, **keyword_args) ⇒ Object
- Create a new <Room> element name
- Room name participantIdentity
- Participant identity when connecting to the Room keyword_args
-
additional attributes.
Methods inherited from TwiML
#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml
Constructor Details
#initialize(**keyword_args) {|_self| ... } ⇒ Connect
Returns a new instance of Connect.
809 810 811 812 813 814 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 809 def initialize(**keyword_args) super(**keyword_args) @name = 'Connect' yield(self) if block_given? end |
Instance Method Details
#autopilot(name, **keyword_args) ⇒ Object
Create a new <Autopilot> element
- name
-
Autopilot assistant sid or unique name
- keyword_args
-
additional attributes
829 830 831 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 829 def autopilot(name, **keyword_args) append(Autopilot.new(name, **keyword_args)) end |
#room(name, participantIdentity: nil, **keyword_args) ⇒ Object
Create a new <Room> element
- name
-
Room name
- participantIdentity
-
Participant identity when connecting to the Room
- keyword_args
-
additional attributes
821 822 823 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 821 def room(name, participantIdentity: nil, **keyword_args) append(Room.new(name, participantIdentity: participantIdentity, **keyword_args)) end |