Skip to content

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.

View source

abstract #add(violations : AVD::Violation::ConstraintViolationListInterface) : Nil #

Adds each of the provided violations to self.

View source

abstract #has?(index : Int) : Bool #

Returns true if a violation exists at the provided index, otherwise false.

View source

abstract #remove(index : Int) : Nil #

Returns the violation at the provided index.

View source

abstract #set(index : Int, violation : AVD::Violation::ConstraintViolationInterface) : Nil #

Sets the provided violation at the provided index.

View source

abstract #size : Int #

Returns the number of violations in self.

View source

abstract #to_json(builder : JSON::Builder) : Nil #

Returns a JSON representation of self.

View source

abstract #to_s(io : IO) : Nil #

Returns a string representation of self.

View source