Class: Plivo::XML::User
Constant Summary
Constants inherited from Element
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(body, attributes = {}) ⇒ User
constructor
A new instance of User.
Methods inherited from Element
#add, #add_attribute, #convert_value, #hyphenate, #method_missing, #to_s, #to_xml
Constructor Details
#initialize(body, attributes = {}) ⇒ User
Returns a new instance of User.
7 8 9 10 |
# File 'lib/plivo/xml/user.rb', line 7 def initialize(body, attributes = {}) raise PlivoXMLError, 'No user set for User' unless body super(body, attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Plivo::XML::Element