class Plivo::XML::Sub
Public Class Methods
Source
# File lib/plivo/xml/sub.rb, line 7 def initialize(body, attributes = {}) raise PlivoXMLError, 'No text set for sub element' unless body unless attributes && attributes[:alias] raise PlivoXMLError, 'alias is a required attribute for sub element' end super(body, attributes) end
Calls superclass method
Plivo::XML::Element::new