Class: Bandwidth::Voice::Forward

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

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



7
8
9
10
11
12
13
14
15
# File 'lib/bandwidth/voice_lib/bxml/verbs/forward.rb', line 7

def to_bxml(xml)
  xml.Forward(compact_hash({
   'to' => to,
   'from' => from,
   'callTimeout' => call_timeout,
   'diversionTreatment' => diversion_treatment,
   'diversionReason' => diversion_reason
  }))
end