Class: ThinkingSphinx::Middlewares::SphinxQL::Inner
- Inherits:
-
Object
- Object
- ThinkingSphinx::Middlewares::SphinxQL::Inner
- Defined in:
- lib/thinking_sphinx/middlewares/sphinxql.rb
Defined Under Namespace
Classes: Statement
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(context) ⇒ Inner
constructor
A new instance of Inner.
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
#call ⇒ Object
26 27 28 29 |
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 26 def call context[:indices] = indices context[:sphinxql] = statement end |