Class: Twilio::TwiML::Task

Inherits:
TwiML
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/voice_response.rb

Overview

<Task> TwiML Noun

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(body, **keyword_args) {|_self| ... } ⇒ Task

Returns a new instance of Task.

Yields:

  • (_self)

Yield Parameters:



1521
1522
1523
1524
1525
1526
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1521

def initialize(body, **keyword_args)
  super(**keyword_args)
  @name = 'Task'
  @value = body
  yield(self) if block_given?
end