class Plivo::XML::Sub

Public Class Methods

new(body, attributes = {}) click to toggle source
Calls superclass method Plivo::XML::Element::new
# 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