module Athena::Validator::Violation::ConstraintViolationListInterface
#
A wrapper type around an Array(AVD::ConstraintViolationInterface)
.
Direct including types
Athena::Validator::Violation::ConstraintViolationList
Methods#
abstract #add(violation : AVD::Violation::ConstraintViolationInterface) : Nil
#
Adds the provided violation to self
.
abstract #add(violations : AVD::Violation::ConstraintViolationListInterface) : Nil
#
Adds each of the provided violations to self
.
abstract #has?(index : Int) : Bool
#
Returns true
if a violation exists at the provided index, otherwise false
.
abstract #set(index : Int, violation : AVD::Violation::ConstraintViolationInterface) : Nil
#
Sets the provided violation at the provided index.
abstract #to_json(builder : JSON::Builder) : Nil
#
Returns a JSON
representation of self
.