module Athena::Validator::Constraints::AbstractComparison(ValueType)


Defines common logic for comparison based constraints, such as AVD::Constraints::GreaterThan, or AVD::Constraints::EqualTo.

Direct including types

Defined in:



Instance Method Summary

Constructor Detail

def : ValueType, message : String = default_error_message, groups : Array(String) | String | Nil = nil, payload : Hash(String, String)? = nil) #

[View source]

Instance Method Detail

abstract def default_error_message : String #

Returns the AVD::Constraint#message for this constraint.

[View source]
def value : ValueType #

Returns the expected value.

[View source]
def value_type : ValueType.class #

Returns the type of the expected value.

[View source]