struct LavinMQ::AMQP::ArgumentValidator::IntValidator

Overview

Validates that value is an Int and optionally greater and/or smaller than given values

Included Modules

Defined in:

lavinmq/amqp/argument_validator.cr

Constructors

Instance Method Summary

Instance methods inherited from module LavinMQ::AMQP::ArgumentValidator

raise_invalid!(msg) raise_invalid!, validate!(header : String, value : AMQP::Field) : Nil validate!

Constructor Detail

def self.new(min_value : Int32 | Nil = nil, max_value : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def validate!(header : String, value : AMQP::Field) : Nil #

[View source]