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:



917
918
919
920
921
922
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 917

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



937
938
939
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 937

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



929
930
931
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 929

def room(name, participantIdentity: nil, **keyword_args)
  append(Room.new(name, participantIdentity: participantIdentity, **keyword_args))
end