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:



767
768
769
770
771
772
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 767

def initialize(**keyword_args)
  super(**keyword_args)
  @name = 'Connect'

  yield(self) if block_given?
end

Instance Method Details

#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



779
780
781
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 779

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