class Thermostat

Attributes

difference[R]

Public Class Methods

new(difference) click to toggle source

Constructor that it passes by parameter the difference between the value that we want and the value that the thermostat obtain with the sensor

# File lib/thermostat.rb, line 6
def initialize (difference)
  @difference=difference
end

Public Instance Methods

print() click to toggle source

Method to print options that can happen on the thermostat