Class: ValidationProfiler::ManagerResult

Inherits:
Object
  • Object
show all
Defined in:
lib/validation_profiler.rb

Overview

This is used to specify validation results from the #validate method of the Validation Manager

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeManagerResult



81
82
83
84
# File 'lib/validation_profiler.rb', line 81

def initialize
  @errors = []
  @outcome = true
end

Instance Attribute Details

#errorsArray[{:field, :error_message}]



79
80
81
# File 'lib/validation_profiler.rb', line 79

def errors
  @errors
end

#outcomeBoolean



76
77
78
# File 'lib/validation_profiler.rb', line 76

def outcome
  @outcome
end