Class: Bandwidth::Xml::Verbs::Gather

Inherits:
Object
  • Object
show all
Includes:
XmlVerb
Defined in:
lib/bandwidth/xml/verbs/gather.rb

Overview

The Gather verb is used to collect digits for some period of time

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
# File 'lib/bandwidth/xml/verbs/gather.rb', line 8

def to_xml(xml)
  xml.Gather(compact_hash({
   'requestUrl' => request_url,
   'requestUrlTimeout' => request_url_timeout,
   'terminatingDigits' => terminating_digits,
   'maxDigits' => max_digits,
   'interDigitTimeout' => inter_digit_timeout,
   'bargeable' => bargeable
  }))
end