class Plivo::XML::W
Constants
- VALID_ROLE_ATTRIBUTE_VALUES
Public Class Methods
new(body, attributes = {})
click to toggle source
Calls superclass method
Plivo::XML::Element::new
# File lib/plivo/xml/w.rb, line 9 def initialize(body, attributes = {}) if attributes && attributes[:role] && !VALID_ROLE_ATTRIBUTE_VALUES.include?(attributes[:role]) raise PlivoXMLError, "invalid attribute value #{attributes[:role]} for role" end super(body, attributes) end