Class: EagleSearch::Interpreter::Filter
- Inherits:
-
Object
- Object
- EagleSearch::Interpreter::Filter
- Defined in:
- lib/eagle_search/interpreter/filter.rb
Constant Summary collapse
- LOGICAL_OPERATORS =
{ and: :must, not: :must_not, or: :should }
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(filters) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(filters) ⇒ Filter
Returns a new instance of Filter.
7 8 9 |
# File 'lib/eagle_search/interpreter/filter.rb', line 7 def initialize(filters) @filters = filters end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
3 4 5 |
# File 'lib/eagle_search/interpreter/filter.rb', line 3 def payload @payload end |