Class: Bandwidth::Xml::Verbs::Transfer
- Inherits:
-
Object
- Object
- Bandwidth::Xml::Verbs::Transfer
- Includes:
- XmlVerb
- Defined in:
- lib/bandwidth/xml/verbs/transfer.rb
Overview
The Transfer verb is used to transfer the call to another number
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::Xml::XmlVerb
Instance Method Details
#to_xml(xml) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bandwidth/xml/verbs/transfer.rb', line 8 def to_xml(xml) xml.Transfer(compact_hash({ 'transferTo' => transfer_to || to, 'transferCallerId' => transfer_caller_id || caller_id })) do if speak_sentence s = if speak_sentence.is_a?(SpeakSentence) then speak_sentence else SpeakSentence.new(speak_sentence) end s.to_xml(xml) end end end |