Class: Appstats::BadGroupTestQuery
- Inherits:
-
Object
- Object
- Appstats::BadGroupTestQuery
- Defined in:
- lib/appstats/test_query.rb
Instance Attribute Summary collapse
-
#group_query_to_sql ⇒ Object
Returns the value of attribute group_query_to_sql.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_to_sql ⇒ Object
Returns the value of attribute query_to_sql.
Instance Method Summary collapse
Instance Attribute Details
#group_query_to_sql ⇒ Object
Returns the value of attribute group_query_to_sql.
39 40 41 |
# File 'lib/appstats/test_query.rb', line 39 def group_query_to_sql @group_query_to_sql end |
#query ⇒ Object
Returns the value of attribute query.
39 40 41 |
# File 'lib/appstats/test_query.rb', line 39 def query @query end |
#query_to_sql ⇒ Object
Returns the value of attribute query_to_sql.
39 40 41 |
# File 'lib/appstats/test_query.rb', line 39 def query_to_sql @query_to_sql end |
Instance Method Details
#db_connection ⇒ Object
46 47 48 |
# File 'lib/appstats/test_query.rb', line 46 def db_connection Appstats.connection end |
#process_query ⇒ Object
41 42 43 44 |
# File 'lib/appstats/test_query.rb', line 41 def process_query query.query_to_sql = "select count(*) as num from appstats_test_objects" query.group_query_to_sql = "this is not valid sql" end |