Class: Enums::ShapeRelations
- Inherits:
-
Object
- Object
- Enums::ShapeRelations
- Defined in:
- lib/enums/shape_relations.rb
Overview
Enum class representing the relationship between a Query / Filter Shape and indexed Shapes that will be used to determine if a Document should be matched or not
Class Method Summary collapse
-
.contains ⇒ ShapeRelations
ShapeRelations object corresponding to elasticsearch option of ‘contains’.
-
.intersects ⇒ ShapeRelations
ShapeRelations object corresponding to elasticsearch option of ‘intersects’.
-
.within ⇒ ShapeRelations
ShapeRelations object corresponding to elasticsearch option of ‘within’.
Instance Method Summary collapse
-
#number ⇒ ShapeRelations
ShapeRelations object corresponding to elasticsearch option of ‘intersects’.
Class Method Details
.contains ⇒ ShapeRelations
Returns ShapeRelations object corresponding to elasticsearch option of ‘contains’.
30 31 32 |
# File 'lib/enums/shape_relations.rb', line 30 def self.contains new(CONTAINS) end |
.intersects ⇒ ShapeRelations
Returns ShapeRelations object corresponding to elasticsearch option of ‘intersects’.
38 39 40 |
# File 'lib/enums/shape_relations.rb', line 38 def self.intersects new(INTERSECTS) end |
.within ⇒ ShapeRelations
Returns ShapeRelations object corresponding to elasticsearch option of ‘within’.
22 23 24 |
# File 'lib/enums/shape_relations.rb', line 22 def self.within new(WITHIN) end |
Instance Method Details
#number ⇒ ShapeRelations
Returns ShapeRelations object corresponding to elasticsearch option of ‘intersects’.
22 23 24 |
# File 'lib/enums/shape_relations.rb', line 22 def self.within new(WITHIN) end |