Class: Enums::ValidationMethods
- Inherits:
-
Object
- Object
- Enums::ValidationMethods
- 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
-
.coerce ⇒ ValidationMethods
ValidationMethods object corresponding to elasticsearch option of ‘COERCE’.
-
.ignore_malformed ⇒ ValidationMethods
ValidationMethods object corresponding to elasticsearch option of ‘IGNORE_MALFORMED’.
-
.strict ⇒ ValidationMethods
ValidationMethods object corresponding to elasticsearch option of ‘STRICT’.
Class Method Details
.coerce ⇒ ValidationMethods
Returns ValidationMethods object corresponding to elasticsearch option of ‘COERCE’.
|
# File 'lib/enums/validation_methods.rb', line 24
|
.ignore_malformed ⇒ ValidationMethods
Returns ValidationMethods object corresponding to elasticsearch option of ‘IGNORE_MALFORMED’.
|
# File 'lib/enums/validation_methods.rb', line 29
|
.strict ⇒ ValidationMethods
Returns ValidationMethods object corresponding to elasticsearch option of ‘STRICT’.
|
# File 'lib/enums/validation_methods.rb', line 34
|