Class: ParadeDB::Proximity::Within

Inherits:
Object
  • Object
show all
Defined in:
lib/parade_db/proximity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(distance, operand, ordered: false) ⇒ Within

Returns a new instance of Within.



30
31
32
33
34
# File 'lib/parade_db/proximity.rb', line 30

def initialize(distance, operand, ordered: false)
  @distance = distance
  @operand = operand
  @ordered = ordered
end

Instance Attribute Details

#distanceObject (readonly)

Returns the value of attribute distance.



28
29
30
# File 'lib/parade_db/proximity.rb', line 28

def distance
  @distance
end

#operandObject (readonly)

Returns the value of attribute operand.



28
29
30
# File 'lib/parade_db/proximity.rb', line 28

def operand
  @operand
end

#orderedObject (readonly)

Returns the value of attribute ordered.



28
29
30
# File 'lib/parade_db/proximity.rb', line 28

def ordered
  @ordered
end