Class: EagleSearch::Interpreter::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/eagle_search/interpreter/filter.rb

Constant Summary collapse

LOGICAL_OPERATORS =
{ and: :must, not: :must_not, or: :should }

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#payloadObject (readonly)

Returns the value of attribute payload.



3
4
5
# File 'lib/eagle_search/interpreter/filter.rb', line 3

def payload
  @payload
end