Class: Enums::ShapeRelations

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.containsShapeRelations



30
31
32
# File 'lib/enums/shape_relations.rb', line 30

def self.contains
  new(CONTAINS)
end

.intersectsShapeRelations



38
39
40
# File 'lib/enums/shape_relations.rb', line 38

def self.intersects
  new(INTERSECTS)
end

.withinShapeRelations



22
23
24
# File 'lib/enums/shape_relations.rb', line 22

def self.within
  new(WITHIN)
end

Instance Method Details

#numberShapeRelations



22
23
24
# File 'lib/enums/shape_relations.rb', line 22

def self.within
  new(WITHIN)
end