Class: Herb::Engine::ValidationErrors::ValidationError
- Inherits:
-
Object
- Object
- Herb::Engine::ValidationErrors::ValidationError
- 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.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, location, message) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(type, location, message) ⇒ ValidationError
Returns a new instance of ValidationError.
46 47 48 49 50 |
# File 'lib/herb/engine/validation_errors.rb', line 46 def initialize(type, location, ) @type = type @location = location @message = end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
44 45 46 |
# File 'lib/herb/engine/validation_errors.rb', line 44 def location @location end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
44 45 46 |
# File 'lib/herb/engine/validation_errors.rb', line 44 def @message end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
44 45 46 |
# File 'lib/herb/engine/validation_errors.rb', line 44 def type @type end |