class Heating

Attributes

cooling[RW]
heating[RW]

Public Class Methods

new() click to toggle source
# File lib/heating.rb, line 5
def initialize()
  @heating = "OFF"
  @cooling = "OFF"
end

Public Instance Methods

cool() click to toggle source
# File lib/heating.rb, line 15
def cool()
  @heating = "OFF"
  @cooling = "ON"
end
heat() click to toggle source
# File lib/heating.rb, line 10
def heat()
  @heating = "ON"
  @cooling = "OFF"
end
sleepMode() click to toggle source
# File lib/heating.rb, line 20
def sleepMode()
  @heating = "OFF"
  @cooling = "OFF"
end