# File lib/rubyipmi/ipmitool/commands/fru.rb, line 114 def parse(data) if ! data.nil? data.each do |line| key, value = line.split(':', 2) if key =~ /^FRU\s+Device.*/ if value =~ /([\w\s]*)\(.*\)/ self[:name] = $~[1].strip.gsub(/\ /, '_').downcase end else key = key.strip.gsub(/\ /, '_').downcase if ! value.nil? self[key] = value.strip end end end end end