Class: CollectdServer::Packet::Values::Gauge

Inherits:
Value
  • Object
show all
Defined in:
lib/collectd_server/packet.rb

Instance Attribute Summary

Attributes inherited from Value

#value

Instance Method Summary collapse

Methods inherited from Value

new_for_type

Constructor Details

#initialize(content) ⇒ Gauge

Returns a new instance of Gauge.



175
176
177
# File 'lib/collectd_server/packet.rb', line 175

def initialize(content)
  @value = content.unpack('d').first
end