Method: Temperature#name

Defined in:
lib/w1temp.rb

#nameObject



7
8
9
10
11
# File 'lib/w1temp.rb', line 7

def name
  paths = Dir["/sys/bus/w1/devices/*"]
  name = paths.select{|path| path.include?('-')}.first.split('/').last
  return name.strip
end