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

- (Inner) initialize(context)

Returns a new instance of Inner



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

def initialize(context)
  @context = context
end

Instance Method Details

- (Object) call



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

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