Class: ModelValidator::Result

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



7
8
9
# File 'lib/model_validator/stats_handler.rb', line 7

def total
  @total
end

#violationsObject

Returns the value of attribute violations

Returns:

  • (Object)

    the current value of violations



7
8
9
# File 'lib/model_validator/stats_handler.rb', line 7

def violations
  @violations
end