Class: Collectd::Packet::Values::Gauge
Instance Method Summary collapse
-
#initialize(f) ⇒ Gauge
constructor
A new instance of Gauge.
- #to_s ⇒ Object
Methods inherited from Part
Constructor Details
#initialize(f) ⇒ Gauge
Returns a new instance of Gauge.
88 89 90 |
# File 'lib/collectd/pkt.rb', line 88 def initialize(f) @f = f end |
Instance Method Details
#to_s ⇒ Object
91 92 93 |
# File 'lib/collectd/pkt.rb', line 91 def to_s [@f].pack("d") end |