Class: Multimeter::ProcGauge

Inherits:
Yammer::Metrics::Gauge show all
Defined in:
lib/multimeter.rb

Instance Method Summary collapse

Methods inherited from Yammer::Metrics::Gauge

#to_h, #type

Constructor Details

#initialize(proc) ⇒ ProcGauge

Returns a new instance of ProcGauge.



556
557
558
559
# File 'lib/multimeter.rb', line 556

def initialize(proc)
  super()
  @proc = proc
end

Instance Method Details

#valueObject



561
562
563
# File 'lib/multimeter.rb', line 561

def value
  @proc.call
end