class Plivo::XML::Emphasis
Constants
- VALID_LEVEL_ATTRIBUTE_VALUE
Public Class Methods
Source
# File lib/plivo/xml/emphasis.rb, line 9 def initialize(body, attributes = {}) if attributes && attributes[:level] && !VALID_LEVEL_ATTRIBUTE_VALUE.include?(attributes[:level]) raise PlivoXMLError, "invalid attribute value #{attributes[:level]} for level" end super(body, attributes) end
Calls superclass method
Plivo::XML::Element::new