Class: Plivo::XML::Speak
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(body, attributes = {}) ⇒ Speak
constructor
A new instance of Speak.
Methods inherited from Element
#add, #convert_value, #method_missing, #to_s, #to_xml
Constructor Details
#initialize(body, attributes = {}) ⇒ Speak
Returns a new instance of Speak.
7 8 9 10 11 12 13 14 |
# File 'lib/plivo/xml/speak.rb', line 7 def initialize(body, attributes = {}) if !body raise PlivoXMLError, 'No text set for Speak' else body = HTMLEntities.new(:html4).encode(body, :decimal) end super(body, attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Plivo::XML::Element