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, participant_identity: nil, **keyword_args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    - Create a new <Room> element name
- Room name participant_identity
- Participant identity when connecting to the Room keyword_args
- 
additional attributes. 
 
 
 
- 
  
    
      #stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args) {|stream| ... } ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    - 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. 
 
 
 
 
 
 
 
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.
| 1123 1124 1125 1126 1127 1128 | # File 'lib/twilio-ruby/twiml/voice_response.rb', line 1123 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 
| 1143 1144 1145 | # File 'lib/twilio-ruby/twiml/voice_response.rb', line 1143 def autopilot(name, **keyword_args) append(Autopilot.new(name, **keyword_args)) end | 
#room(name, participant_identity: nil, **keyword_args) ⇒ Object
Create a new <Room> element
- name
- 
Room name 
- participant_identity
- 
Participant identity when connecting to the Room 
- keyword_args
- 
additional attributes 
| 1135 1136 1137 | # File 'lib/twilio-ruby/twiml/voice_response.rb', line 1135 def room(name, participant_identity: nil, **keyword_args) append(Room.new(name, participant_identity: participant_identity, **keyword_args)) end | 
#stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args) {|stream| ... } ⇒ Object
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 
| 1156 1157 1158 1159 1160 1161 | # File 'lib/twilio-ruby/twiml/voice_response.rb', line 1156 def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args) 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) yield(stream) if block_given? append(stream) end |