Class: RailsIdle::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-idle/report.rb

Constant Summary collapse

CALCULATED_KEY =
:calculated
COUNTER_KEY =
RailsIdle::Storage::COUNTER_KEY

Instance Method Summary collapse

Constructor Details

#initialize(collector) ⇒ Report

Returns a new instance of Report.



6
7
8
# File 'lib/rails-idle/report.rb', line 6

def initialize(collector)
  @tree = TreeBuilder.new(collector).tree
end

Instance Method Details

#prepareObject



10
11
12
13
14
# File 'lib/rails-idle/report.rb', line 10

def prepare
  calc_counter!(@tree)
  #sort!(@obj)
  @tree
end