class Bandwidth::Voice::Gather
The Gather
verb is used to collect digits for some period of time
Public Instance Methods
embedded_xml(xml, property, type)
click to toggle source
# File lib/bandwidth/voice_lib/bxml/verbs/gather.rb, line 26 def embedded_xml(xml, property, type) if property s = if property.is_a?(type) then property else type.new(property) end s.to_bxml(xml) end end
nest_verbs_list(xml, property)
click to toggle source
# File lib/bandwidth/voice_lib/bxml/verbs/gather.rb, line 35 def nest_verbs_list(xml, property) if property property.each do |verb| verb.to_bxml(xml) end end end
to_bxml(xml)
click to toggle source
# File lib/bandwidth/voice_lib/bxml/verbs/gather.rb, line 9 def to_bxml(xml) xml.Gather(compact_hash({ 'gatherUrl' => gather_url, 'gatherMethod' => gather_method, 'terminatingDigits' => terminating_digits, 'tag' => tag, 'maxDigits' => max_digits, 'interDigitTimeout' => inter_digit_timeout, 'username' => username, 'password' => password, 'firstDigitTimeout' => first_digit_timeout, 'repeatCount' => repeat_count, 'gatherFallbackUrl' => gather_fallback_url, 'gatherFallbackMethod' => gather_fallback_method, 'fallbackUsername' => fallback_username, 'fallbackPassword' => fallback_password })) do def embedded_xml(xml, property, type) if property s = if property.is_a?(type) then property else type.new(property) end s.to_bxml(xml) end end def nest_verbs_list(xml, property) if property property.each do |verb| verb.to_bxml(xml) end end end embedded_xml(xml, speak_sentence, SpeakSentence) embedded_xml(xml, play_audio, PlayAudio) nest_verbs_list(xml, nested_verbs) end end