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

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

Instance Method Summary (collapse)

Constructor Details

- (Statement) initialize(report)

Returns a new instance of Statement



164
165
166
167
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 164

def initialize(report)
  self.report = report
  self.query = Riddle::Query::Select.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(*args, &block) (protected)



238
239
240
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 238

def method_missing(*args, &block)
  report.send *args, &block
end

Instance Method Details

- (Object) to_riddle_query_select



169
170
171
172
173
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 169

def to_riddle_query_select
  filter_by_scopes

  query
end