Class: Bandwidth::Voice::Redirect
- Inherits:
-
Object
- Object
- Bandwidth::Voice::Redirect
- Includes:
- XmlVerb
- Defined in:
- lib/bandwidth/voice_lib/bxml/verbs/redirect.rb
Overview
The Redirect verb is used to redirect the current XML execution to another URL
Instance Method Summary collapse
Methods included from XmlVerb
#compact_hash, #initialize, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bandwidth::Voice::XmlVerb
Instance Method Details
#to_bxml(xml) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bandwidth/voice_lib/bxml/verbs/redirect.rb', line 9 def to_bxml(xml) xml.Redirect(compact_hash({ 'redirectUrl' => redirect_url, 'redirectMethod' => redirect_method, 'tag' => tag, 'username' => username, 'password' => password, 'redirectFallbackUrl' => redirect_fallback_url, 'redirectFallbackMethod' => redirect_fallback_method, 'fallbackUsername' => fallback_username, 'fallbackPassword' => fallback_password })) end |