Class: Bandwidth::Xml::Verbs::Pause

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

Overview

Pause is a verb to specify the length of seconds to wait before executing the next verb

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

def to_xml(xml)
  xml.Pause(compact_hash({
   'duration' => duration
  }))
end