Class: Multimeter::MetricRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/multimeter.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



13
14
15
16
17
18
19
# File 'lib/multimeter.rb', line 13

def to_h
  h = {}
  metrics.each do |metric_name, metric|
    h[metric_name] = metric.to_h
  end
  h
end