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.



28
29
30
31
# File 'lib/rubyipmi/freeipmi/commands/sensors.rb', line 28

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