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:


794
795
796
797
798
799
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 794

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