Class: ModelValidator::Result
- Inherits:
-
Struct
- Object
- Struct
- ModelValidator::Result
- Defined in:
- lib/model_validator/stats_handler.rb
Overview
Validations summary, with:
-
violations: number of violations (i.e. number of model which validation failed)
-
total: total number of validated models
Instance Attribute Summary collapse
-
#total ⇒ Object
Returns the value of attribute total.
-
#violations ⇒ Object
Returns the value of attribute violations.
Instance Attribute Details
#total ⇒ Object
Returns the value of attribute total
7 8 9 |
# File 'lib/model_validator/stats_handler.rb', line 7 def total @total end |
#violations ⇒ Object
Returns the value of attribute violations
7 8 9 |
# File 'lib/model_validator/stats_handler.rb', line 7 def violations @violations end |