Class: Collectd::Packet::Values::Gauge

Inherits:
Part
  • Object
show all
Defined in:
lib/collectd/pkt.rb

Instance Method Summary collapse

Methods inherited from Part

type, #type

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_sObject



91
92
93
# File 'lib/collectd/pkt.rb', line 91

def to_s
  [@f].pack("d")
end