Class: Plivo::Number

Inherits:
Element show all
Defined in:
lib/plivo.rb

Instance Attribute Summary

Attributes inherited from Element

#name, #node

Instance Method Summary collapse

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


710
711
712
713
714
715
# File 'lib/plivo.rb', line 710

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