Class: Appstats::BadTestQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#group_query_to_sqlObject

Returns the value of attribute group_query_to_sql.



25
26
27
# File 'lib/appstats/test_query.rb', line 25

def group_query_to_sql
  @group_query_to_sql
end

#queryObject

Returns the value of attribute query.



25
26
27
# File 'lib/appstats/test_query.rb', line 25

def query
  @query
end

#query_to_sqlObject

Returns the value of attribute query_to_sql.



25
26
27
# File 'lib/appstats/test_query.rb', line 25

def query_to_sql
  @query_to_sql
end

Instance Method Details

#db_connectionObject



31
32
33
# File 'lib/appstats/test_query.rb', line 31

def db_connection
  Appstats.connection
end

#process_queryObject



27
28
29
# File 'lib/appstats/test_query.rb', line 27

def process_query
  query.query_to_sql = "this is not valid sql"
end