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