Class: Bureaucrat::Validators::MinValueValidator

Inherits:
BaseValidator show all
Defined in:
lib/bureaucrat/validators.rb

Instance Method Summary (collapse)

Methods inherited from BaseValidator

#call, #clean, #initialize

Constructor Details

This class inherits a constructor from Bureaucrat::Validators::BaseValidator

Instance Method Details

- (Object) code



128
129
130
# File 'lib/bureaucrat/validators.rb', line 128

def code
  :min_value
end

- (Object) compare(a, b)



132
133
134
# File 'lib/bureaucrat/validators.rb', line 132

def compare(a, b)
  a < b
end

- (Object) message



124
125
126
# File 'lib/bureaucrat/validators.rb', line 124

def message
  'Ensure this value is greater than or equal to %(limit_value)s.'
end