class

Quartz::Verifiers::EachChecker

Inherits Quartz::Verifiers::RuntimeChecker / Reference / Object

EachChecker is a verifier which iterates through the given attributes invoking the #check_each method passing in the model, attribute and value.

All provided verifiers are built on top of this verifier.

Constructors

new(*attributes : Symbol, **kwargs)

Returns a new verifier instance. The given attributes are made available through the #attributes getter.

Source

Instance methods

allow_nil?
Source
attributes
Source
check(model) : Bool

Performs verification on the supplied model. By default this will call #check_each to determine validity therefore subclasses should override #check_each with verification logic.

Source
check_each(model, attribute, value)

Override this method in subclasses with the verification logic, adding errors to the records errors array where necessary.

Source