Class: Twilio::TwiML::Redirect
- 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
Instance Method Summary collapse
-
#initialize(url, **keyword_args) {|_self| ... } ⇒ Redirect
constructor
A new instance of Redirect.
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.
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 |