Class: Plivo::DTMF
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(body, attributes = {}) ⇒ DTMF
constructor
A new instance of DTMF.
Methods inherited from Element
#add, #convert_value, #method_missing, #to_s, #to_xml
Constructor Details
#initialize(body, attributes = {}) ⇒ DTMF
Returns a new instance of DTMF.
802 803 804 805 806 807 |
# File 'lib/plivo.rb', line 802 def initialize(body, attributes={}) if not body raise PlivoError, 'No digits set for DTMF' end super(body, attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Plivo::Element