class Thermostat

Public Class Methods

new() click to toggle source
# File lib/thermostat.rb, line 2
def initialize; end

Public Instance Methods

airco_temperature(temperature_m, temperature, range) click to toggle source
# File lib/thermostat.rb, line 8
def airco_temperature(temperature_m, temperature, range)
  temperature_m >= temperature + range
end
heating_temperature(temperature_m, temperature, range) click to toggle source
# File lib/thermostat.rb, line 4
def heating_temperature(temperature_m, temperature, range)
  temperature_m <= temperature - range
end