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



118
119
120
# File 'lib/bureaucrat/validators.rb', line 118

def code
  :min_value
end

- (Object) compare(a, b)



122
123
124
# File 'lib/bureaucrat/validators.rb', line 122

def compare(a, b)
  a < b
end

- (Object) message



114
115
116
# File 'lib/bureaucrat/validators.rb', line 114

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