Class: ThinkingSphinx::Middlewares::SphinxQL::Inner

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/middlewares/sphinxql.rb

Defined Under Namespace

Classes: Statement

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Inner



20
21
22
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 20

def initialize(context)
  @context = context
end

Instance Method Details

#callObject



24
25
26
27
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 24

def call
  context[:indices]  = indices
  context[:sphinxql] = statement
end