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