Class: ParadeDB::Proximity::Within
- Inherits:
-
Object
- Object
- ParadeDB::Proximity::Within
- Defined in:
- lib/parade_db/proximity.rb
Instance Attribute Summary collapse
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#ordered ⇒ Object
readonly
Returns the value of attribute ordered.
Instance Method Summary collapse
-
#initialize(distance, operand, ordered: false) ⇒ Within
constructor
A new instance of Within.
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
#distance ⇒ Object (readonly)
Returns the value of attribute distance.
28 29 30 |
# File 'lib/parade_db/proximity.rb', line 28 def distance @distance end |
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
28 29 30 |
# File 'lib/parade_db/proximity.rb', line 28 def operand @operand end |
#ordered ⇒ Object (readonly)
Returns the value of attribute ordered.
28 29 30 |
# File 'lib/parade_db/proximity.rb', line 28 def ordered @ordered end |