Module: MongoClarify

Defined in:
lib/mongo_clarify.rb,
lib/mongo_clarify/output.rb,
lib/mongo_clarify/version.rb,
lib/mongo_clarify/investigate_with_pattern_matching.rb,
lib/mongo_clarify/investigate_without_pattern_matching.rb

Defined Under Namespace

Classes: Investigate, Output

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.run(explain) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/mongo_clarify.rb', line 10

def run(explain)
  investigate = MongoClarify::Investigate.new(explain)
  exec_stats = investigate.execution_stats
  operation_method = investigate.operation_method

  MongoClarify::Output.new(operation_method, exec_stats).markdown_table
end