Class: ActiveRecordQueryStats::SqlEventAnalyzer
- Inherits:
-
Object
- Object
- ActiveRecordQueryStats::SqlEventAnalyzer
- Defined in:
- lib/active_record_query_stats/sql_event_analyzer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(event) ⇒ SqlEventAnalyzer
constructor
A new instance of SqlEventAnalyzer.
Constructor Details
#initialize(event) ⇒ SqlEventAnalyzer
Returns a new instance of SqlEventAnalyzer.
7 8 9 |
# File 'lib/active_record_query_stats/sql_event_analyzer.rb', line 7 def initialize(event) @event = event end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/active_record_query_stats/sql_event_analyzer.rb', line 11 def call return if skipping? increase_total return increase_cached if cached_query? increase_real || increase_statements || increase_other end |