Sha256: a3e07e9c8398ef7a48d0bcfae6932b177f330bba5a089beb7c3898c38d458fc5

Contents?: true

Size: 1018 Bytes

Versions: 29

Compression:

Stored size: 1018 Bytes

Contents

require_relative 'xml_verb'

module Bandwidth 
  module Voice 
    # The Bridge verb allows you to connect 2 calls 
    class Bridge
      include XmlVerb

      def to_bxml(xml)
        xml.Bridge(call_id, compact_hash({
         'bridgeCompleteUrl' => bridge_complete_url,
         'bridgeCompleteMethod' => bridge_complete_method,
         'bridgeTargetCompleteUrl' => bridge_target_complete_url,
         'bridgeTargetCompleteMethod' => bridge_target_complete_method,
         'username' => username,
         'password' => password,
         'tag' => tag,
         'bridgeCompleteFallbackUrl' => bridge_complete_fallback_url,
         'bridgeCompleteFallbackMethod' => bridge_complete_fallback_method,
         'bridgeTargetCompleteFallbackUrl' => bridge_target_complete_fallback_url,
         'bridgeTargetCompleteFallbackMethod' => bridge_target_complete_fallback_method,
         'fallbackUsername' => fallback_username,
         'fallbackPassword' => fallback_password
        }))
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bandwidth-sdk-10.5.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-10.4.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-10.3.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-10.2.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-10.1.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-10.0.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.4.1 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.4.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.3.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.2.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.1.2 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.1.1 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.1.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-9.0.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-8.0.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-7.1.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-7.0.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-6.2.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-6.1.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb
bandwidth-sdk-6.0.0 lib/bandwidth/voice_lib/bxml/verbs/bridge.rb