Class: ThinkingSphinx::Middlewares::SphinxQL::Inner::Statement
- Inherits:
-
Object
- Object
- ThinkingSphinx::Middlewares::SphinxQL::Inner::Statement
- Defined in:
- lib/thinking_sphinx/middlewares/sphinxql.rb
Instance Method Summary collapse
-
#initialize(report) ⇒ Statement
constructor
A new instance of Statement.
- #to_riddle_query_select ⇒ Object
Constructor Details
#initialize(report) ⇒ Statement
Returns a new instance of Statement.
151 152 153 154 |
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 151 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)
225 226 227 |
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 225 def method_missing(*args, &block) report.send *args, &block end |
Instance Method Details
#to_riddle_query_select ⇒ Object
156 157 158 159 160 |
# File 'lib/thinking_sphinx/middlewares/sphinxql.rb', line 156 def to_riddle_query_select filter_by_scopes query end |