Class: AwesomeExplain::Insights::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/awesome_explain/insights/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#command_subscriberObject

Returns the value of attribute command_subscriber.



8
9
10
# File 'lib/awesome_explain/insights/base.rb', line 8

def command_subscriber
  @command_subscriber
end

#metricsObject

Returns the value of attribute metrics.



8
9
10
# File 'lib/awesome_explain/insights/base.rb', line 8

def metrics
  @metrics
end

Class Method Details

.analyze_ar(&block) ⇒ Object



14
15
16
# File 'lib/awesome_explain/insights/base.rb', line 14

def self.analyze_ar(&block)
  ActiveRecordInsights.analyze(&block)
end

.analyze_mongoid(metrics = [], &block) ⇒ Object



10
11
12
# File 'lib/awesome_explain/insights/base.rb', line 10

def self.analyze_mongoid(metrics = [], &block)
  MongoidInsights.analyze(metrics, block)
end