struct Athena::Validator::Constraints::LessThanOrEqual::Validator
- Athena::Validator::Constraints::LessThanOrEqual::Validator
- Athena::Validator::Constraints::ComparisonValidator
- Athena::Validator::ConstraintValidator
- Struct
- Value
- Object
Defined in:
constraints/less_than_or_equal.crInstance Method Summary
- #compare_values(actual : Number, expected : Number) : Bool
- #compare_values(actual : String, expected : String) : Bool
- #compare_values(actual : Time, expected : Time) : Bool
-
#compare_values(actual : _, expected : _) : NoReturn
Returns
true
if the provided actual and expected values are compatible, otherwisefalse
. -
#error_code : String
Returns the expected error code for
self
.
Instance methods inherited from struct Athena::Validator::Constraints::ComparisonValidator
compare_values(actual : _, expected : _) : Bool
compare_values,
error_code : String
error_code,
validate(value : _, constraint : AVD::Constraints::AbstractComparison) : Nil
validate
Instance methods inherited from struct Athena::Validator::ConstraintValidator
context : AVD::ExecutionContextInterface
context,
initialize
initialize,
raise_invalid_type(value : _, supported_types : String) : NoReturn
raise_invalid_type,
validate(value : _, constraint : AVD::Constraint) : Nil
validate
Constructor methods inherited from struct Athena::Validator::ConstraintValidator
new
new
Instance methods inherited from module Athena::Validator::ConstraintValidatorInterface
context : AVD::ExecutionContextInterface
context,
validate(value : _, constraint : AVD::Constraint) : Nil
validate
Instance Method Detail
def compare_values(actual : _, expected : _) : NoReturn
#
Returns true
if the provided actual and expected values are compatible, otherwise false
.