Class: ValidationManagerResult
- Inherits:
-
Object
- Object
- ValidationManagerResult
- Defined in:
- lib/validation_profiler.rb
Overview
This is used to specify validation results from the #validate method of the ValidationManager
Instance Attribute Summary collapse
-
#errors ⇒ Array[{:field, :error_message}]
An array of field errors that occurred during validation.
-
#outcome ⇒ Boolean
The outcome of the validation.
Instance Method Summary collapse
-
#initialize ⇒ ValidationManagerResult
constructor
A new instance of ValidationManagerResult.
Constructor Details
#initialize ⇒ ValidationManagerResult
Returns a new instance of ValidationManagerResult.
79 80 81 82 |
# File 'lib/validation_profiler.rb', line 79 def initialize @errors = [] @outcome = true end |
Instance Attribute Details
#errors ⇒ Array[{:field, :error_message}]
Returns An array of field errors that occurred during validation.
77 78 79 |
# File 'lib/validation_profiler.rb', line 77 def errors @errors end |
#outcome ⇒ Boolean
Returns The outcome of the validation.
74 75 76 |
# File 'lib/validation_profiler.rb', line 74 def outcome @outcome end |