Method: QueryCounter::Collector#reset

Defined in:
lib/query_counter/collector.rb

#resetObject



24
25
26
27
28
29
30
31
# File 'lib/query_counter/collector.rb', line 24

def reset
  if instance_variable_defined?(:@notification_events)
    remove_instance_variable(:@notification_events)
  end

  # just away to return the current stats and reset them back to an empty hash
  @stats.tap { @stats = {} }
end