Class: RSI::Query

Inherits:
Object
  • Object
show all
Includes:
Loggable
Defined in:
lib/rsi/query.rb

Direct Known Subclasses

ANDQuery, ORQuery, TermQuery

Instance Method Summary collapse

Methods included from Loggable

#logger

Constructor Details

#initializeQuery

Returns a new instance of Query.



9
10
11
# File 'lib/rsi/query.rb', line 9

def initialize()
  @subqueries = []
end

Instance Method Details

#add_subquery(query) ⇒ Object



13
14
15
# File 'lib/rsi/query.rb', line 13

def add_subquery( query )
  @subqueries << query
end

#evaluate(locator) ⇒ Object



17
# File 'lib/rsi/query.rb', line 17

def evaluate( locator ); end