Class: ValidationProfiler::ManagerResult
- Inherits:
-
Object
- Object
- ValidationProfiler::ManagerResult
- Defined in:
- lib/validation_profiler/manager_result.rb
Overview
This is used to specify validation results from the #validate method of the Validation Manager
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 ⇒ ManagerResult
constructor
A new instance of ManagerResult.
Constructor Details
#initialize ⇒ ManagerResult
Returns a new instance of ManagerResult.
12 13 14 15 |
# File 'lib/validation_profiler/manager_result.rb', line 12 def initialize @errors = [] @outcome = true end |
Instance Attribute Details
#errors ⇒ Array[{:field, :error_message}]
Returns An array of field errors that occurred during validation.
10 11 12 |
# File 'lib/validation_profiler/manager_result.rb', line 10 def errors @errors end |
#outcome ⇒ Boolean
Returns The outcome of the validation.
7 8 9 |
# File 'lib/validation_profiler/manager_result.rb', line 7 def outcome @outcome end |