Class: Hashira::Report::MetricsTable

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/report/metrics_table.rb

Constant Summary collapse

LIMIT =
25

Instance Method Summary collapse

Constructor Details

#initialize(graph, io: $stdout) ⇒ MetricsTable

Returns a new instance of MetricsTable.



4
5
6
7
# File 'lib/hashira/report/metrics_table.rb', line 4

def initialize(graph, io: $stdout)
  @graph = graph
  @io = io
end

Instance Method Details



11
12
13
14
15
16
# File 'lib/hashira/report/metrics_table.rb', line 11

def print
  heading
  kept.each { |package, metric| @io.puts(row(package, metric)) }
  note unless spared.empty?
  legend
end