Class: Twilio::TwiML::Connect

Inherits:
TwiML
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/voice_response.rb

Overview

<Connect> TwiML Verb

Instance Attribute Summary

Attributes inherited from TwiML

#name

Instance Method Summary collapse

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.

Yields:

  • (_self)

Yield Parameters:



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