Class: Rubyipmi::Freeipmi::Sensor

Inherits:
Hash
  • Object
show all
Defined in:
lib/rubyipmi/freeipmi/commands/sensors.rb

Instance Method Summary collapse

Constructor Details

#initialize(line) ⇒ Sensor

Returns a new instance of Sensor.



83
84
85
86
# File 'lib/rubyipmi/freeipmi/commands/sensors.rb', line 83

def initialize(line)
  parse(line)
  self[:name] = normalize(self[:name])
end