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

#initialize(report) ⇒ Statement

Returns a new instance of Statement.



175
176
177
178
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 175

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

#method_missing(*args, &block) ⇒ Object (protected)



251
252
253
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 251

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

Instance Method Details

#to_riddle_query_selectObject



180
181
182
183
184
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 180

def to_riddle_query_select
  filter_by_scopes

  query
end