Class: Hashira::Report::MetricsTable

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MetricsTable.



6
7
8
9
# File 'lib/hashira/report/metrics_table.rb', line 6

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

Instance Method Details



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

def print
  heading
  by_instability.each { |package, metric| @io.puts row(package, metric) }
  legend
end