Class: Herb::Engine::ValidationErrors::SecurityValidationError
- Inherits:
-
Object
- Object
- Herb::Engine::ValidationErrors::SecurityValidationError
- Defined in:
- lib/herb/engine/validation_errors.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#suggestion ⇒ Object
readonly
Returns the value of attribute suggestion.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(location, message, suggestion) ⇒ SecurityValidationError
constructor
A new instance of SecurityValidationError.
Constructor Details
#initialize(location, message, suggestion) ⇒ SecurityValidationError
Returns a new instance of SecurityValidationError.
56 57 58 59 60 61 |
# File 'lib/herb/engine/validation_errors.rb', line 56 def initialize(location, , suggestion) @type = "SecurityError" @location = location @message = @suggestion = suggestion end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
54 55 56 |
# File 'lib/herb/engine/validation_errors.rb', line 54 def location @location end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
54 55 56 |
# File 'lib/herb/engine/validation_errors.rb', line 54 def @message end |
#suggestion ⇒ Object (readonly)
Returns the value of attribute suggestion.
54 55 56 |
# File 'lib/herb/engine/validation_errors.rb', line 54 def suggestion @suggestion end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
54 55 56 |
# File 'lib/herb/engine/validation_errors.rb', line 54 def type @type end |