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
10 11 12 13 14 15 16 17 18 |
# File 'lib/bandwidth/voice_lib/bxml/verbs/redirect.rb', line 10 def to_bxml(xml) xml.Redirect(compact_hash({ 'redirectUrl' => redirect_url, 'redirectMethod' => redirect_method, 'tag' => tag, 'username' => username, 'password' => password })) end |