Class: Enums::ValidationMethods

Inherits:
Object
  • Object
show all
Defined in:
lib/enums/validation_methods.rb

Overview

This enum is used to determine how to deal with invalid geo coordinates in geo related queries: On STRICT validation invalid coordinates cause an exception to be thrown. On IGNORE_MALFORMED invalid coordinates are being accepted. On COERCE invalid coordinates are being corrected to the most likely valid coordinate.

Class Method Summary collapse

Class Method Details

.coerceValidationMethods

Returns ValidationMethods object corresponding to elasticsearch option of ‘COERCE’.

Returns:

  • (ValidationMethods)

    ValidationMethods object corresponding to elasticsearch option of ‘COERCE’



# File 'lib/enums/validation_methods.rb', line 24

.ignore_malformedValidationMethods

Returns ValidationMethods object corresponding to elasticsearch option of ‘IGNORE_MALFORMED’.

Returns:

  • (ValidationMethods)

    ValidationMethods object corresponding to elasticsearch option of ‘IGNORE_MALFORMED’



# File 'lib/enums/validation_methods.rb', line 29

.strictValidationMethods

Returns ValidationMethods object corresponding to elasticsearch option of ‘STRICT’.

Returns:

  • (ValidationMethods)

    ValidationMethods object corresponding to elasticsearch option of ‘STRICT’



# File 'lib/enums/validation_methods.rb', line 34