Class: Twilio::TwiML::Queue

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

Overview

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

Returns a new instance of Queue.

Yields:

  • (_self)

Yield Parameters:



1415
1416
1417
1418
1419
1420
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1415

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