Class: Hashira::Report::MetricsTable
- Inherits:
-
Object
- Object
- Hashira::Report::MetricsTable
- Defined in:
- lib/hashira/report/metrics_table.rb
Constant Summary collapse
- LIMIT =
25
Instance Method Summary collapse
-
#initialize(graph, io: $stdout) ⇒ MetricsTable
constructor
A new instance of MetricsTable.
- #print ⇒ Object
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
#print ⇒ Object
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 |