Exception: Rxhp::AttributeValidator::UnacceptableAttributeError
- Inherits:
-
ValidationError
- Object
- ScriptError
- ScriptError
- ValidationError
- Rxhp::AttributeValidator::UnacceptableAttributeError
- Defined in:
- lib/rxhp/attribute_validator.rb
Overview
Indicates that a provided attribute was not whitelisted.
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(element, attribute, value) ⇒ UnacceptableAttributeError
constructor
A new instance of UnacceptableAttributeError.
Constructor Details
#initialize(element, attribute, value) ⇒ UnacceptableAttributeError
Returns a new instance of UnacceptableAttributeError.
25 26 27 28 |
# File 'lib/rxhp/attribute_validator.rb', line 25 def initialize element, attribute, value @element, @attribute, @value = element, attribute, value super "Class #{element.class.name} does not support #{attribute}=#{value.inspect}" end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
24 25 26 |
# File 'lib/rxhp/attribute_validator.rb', line 24 def attribute @attribute end |
#element ⇒ Object (readonly)
Returns the value of attribute element.
24 25 26 |
# File 'lib/rxhp/attribute_validator.rb', line 24 def element @element end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
24 25 26 |
# File 'lib/rxhp/attribute_validator.rb', line 24 def value @value end |