class PiSys::Temperature

Constants

COMMAND
KEY

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/pi-sys/stats/temperature.rb, line 6
def initialize
  super(KEY, COMMAND)
end

Public Instance Methods

fetch() click to toggle source
# File lib/pi-sys/stats/temperature.rb, line 10
def fetch
  STATS[KEY] = super
  STATS[KEY]['temp'].gsub!("'C", '') if STATS[KEY]['temp']
  STATS[KEY]
end