Sha256: 97ae78832ef224d2bfefdfeae16e711f5898e2c9928e41ca456d8bb5fa066147

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

require_relative 'xml_verb'

module Bandwidth 
  module Voice 
    # The Redirect verb is used to redirect the current XML execution to another URL
    class Redirect
      include XmlVerb

      def to_bxml(xml)
        xml.Redirect(compact_hash({
         'redirectUrl' => redirect_url,
         'redirectMethod' => redirect_method,
         'tag' => tag,
         'username' => username,
         'password' => password
        }))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bandwidth-sdk-2.0.0 lib/bandwidth/voice_lib/bxml/verbs/redirect.rb
bandwidth-sdk-1.0.2 lib/bandwidth/voice_lib/bxml/verbs/redirect.rb
bandwidth-sdk-1.0.1 lib/bandwidth/voice_lib/bxml/verbs/redirect.rb
bandwidth-sdk-1.0.0 lib/bandwidth/voice_lib/bxml/verbs/redirect.rb
bandwidth-sdk-1.0.0.pre lib/bandwidth/voice_lib/bxml/verbs/redirect.rb