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

Returns a new instance of Inner.



22
23
24
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 22

def initialize(context)
  @context = context
end

Instance Method Details

#callObject



26
27
28
29
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 26

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