Class: Multimeter::ProcGauge
- Inherits:
-
Yammer::Metrics::Gauge
- Object
- Yammer::Metrics::Gauge
- Multimeter::ProcGauge
- Defined in:
- lib/multimeter.rb
Instance Method Summary collapse
-
#initialize(proc) ⇒ ProcGauge
constructor
A new instance of ProcGauge.
- #value ⇒ Object
Methods inherited from Yammer::Metrics::Gauge
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
#value ⇒ Object
561 562 563 |
# File 'lib/multimeter.rb', line 561 def value @proc.call end |