Class: Twilio::TwiML::Enqueue
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
<Enqueue> TwiML Noun
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#initialize(name: nil, **keyword_args) {|_self| ... } ⇒ Enqueue
constructor
A new instance of Enqueue.
-
#task(body, priority: nil, timeout: nil, **keyword_args) ⇒ Object
- Create a new <Task> element body
- TaskRouter task attributes priority
- Task priority timeout
- Timeout associated with task keyword_args
-
additional attributes.
Methods inherited from TwiML
#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml
Constructor Details
#initialize(name: nil, **keyword_args) {|_self| ... } ⇒ Enqueue
Returns a new instance of Enqueue.
1589 1590 1591 1592 1593 1594 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1589 def initialize(name: nil, **keyword_args) super(**keyword_args) @name = 'Enqueue' @value = name unless name.nil? yield(self) if block_given? end |
Instance Method Details
#task(body, priority: nil, timeout: nil, **keyword_args) ⇒ Object
Create a new <Task> element
- body
-
TaskRouter task attributes
- priority
-
Task priority
- timeout
-
Timeout associated with task
- keyword_args
-
additional attributes
1602 1603 1604 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1602 def task(body, priority: nil, timeout: nil, **keyword_args) append(Task.new(body, priority: priority, timeout: timeout, **keyword_args)) end |