Class: Twilio::TwiML::Start
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
<Start> TwiML Verb
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#initialize(**keyword_args) {|_self| ... } ⇒ Start
constructor
A new instance of Start.
-
#siprec(name: nil, connector_name: nil, **keyword_args) {|siprec| ... } ⇒ Object
- Create a new <Siprec> element name
- Friendly name given to SIPREC connector_name
- Unique name for Connector keyword_args
-
additional attributes.
-
#stream(name: nil, connector_name: nil, url: nil, track: 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 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| ... } ⇒ Start
Returns a new instance of Start.
369 370 371 372 373 374 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 369 def initialize(**keyword_args) super(**keyword_args) @name = 'Start' yield(self) if block_given? end |
Instance Method Details
#siprec(name: nil, connector_name: nil, **keyword_args) {|siprec| ... } ⇒ Object
Create a new <Siprec> element
- name
-
Friendly name given to SIPREC
- connector_name
-
Unique name for Connector
- keyword_args
-
additional attributes
395 396 397 398 399 400 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 395 def siprec(name: nil, connector_name: nil, **keyword_args) siprec = Siprec.new(name: name, connector_name: connector_name, **keyword_args) yield(siprec) if block_given? append(siprec) end |
#stream(name: nil, connector_name: nil, url: nil, track: 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
- keyword_args
-
additional attributes
383 384 385 386 387 388 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 383 def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args) stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args) yield(stream) if block_given? append(stream) end |