Class: Bandwidth::Voice::Bridge

Inherits:
Object
  • Object
show all
Includes:
XmlVerb
Defined in:
lib/bandwidth/voice_lib/bxml/verbs/bridge.rb

Overview

The Bridge verb allows you to connect 2 calls

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
# File 'lib/bandwidth/voice_lib/bxml/verbs/bridge.rb', line 9

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
  }))
end