class Bandwidth::Voice::Redirect

The Redirect verb is used to redirect the current XML execution to another URL

Public Instance Methods

to_bxml(xml) click to toggle source
# 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