class Plivo::XML::Emphasis

Constants

VALID_LEVEL_ATTRIBUTE_VALUE

Public Class Methods

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