Class: AwesomeExplain::Insights::Base
- Inherits:
-
Object
- Object
- AwesomeExplain::Insights::Base
- Defined in:
- lib/awesome_explain/insights/base.rb
Instance Attribute Summary collapse
-
#command_subscriber ⇒ Object
Returns the value of attribute command_subscriber.
-
#metrics ⇒ Object
Returns the value of attribute metrics.
Class Method Summary collapse
Instance Attribute Details
#command_subscriber ⇒ Object
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 |
#metrics ⇒ Object
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 |