Class: CoordinateValidator

Inherits:
BaseValidator
  • Object
show all
Defined in:
lib/lite/validators/coordinate_validator.rb

Constant Summary collapse

BOUNDARIES =
{
  latitude: 90.0,
  longitude: 180.0
}.freeze

Instance Method Summary collapse

Instance Method Details

#validate_each(record, attribute, value) ⇒ Object



10
11
12
13
# File 'lib/lite/validators/coordinate_validator.rb', line 10

def validate_each(record, attribute, value)
  assert_valid_boundary!
  super
end