Class: Appstats::InvalidTestQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/appstats/test_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#queryObject

Returns the value of attribute query.



66
67
68
# File 'lib/appstats/test_query.rb', line 66

def query
  @query
end

Instance Method Details

#db_connectionObject



74
75
76
# File 'lib/appstats/test_query.rb', line 74

def db_connection
  Appstats.connection
end

#process_queryObject



68
69
70
71
# File 'lib/appstats/test_query.rb', line 68

def process_query
  query.query_to_sql = "select * from appstats_test_objects"
  query.group_query_to_sql = "select * from appstats_test_objects"
end