Class: Twilio::TwiML::Redirect

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

Overview

<Redirect> TwiML Verb

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

Returns a new instance of Redirect.

Yields:

  • (_self)

Yield Parameters:



1482
1483
1484
1485
1486
1487
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1482

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