class Led
Attributes
led[R]
Public Class Methods
new(led)
click to toggle source
# File lib/led.rb, line 6 def initialize (led) @led=led end
Public Instance Methods
ledColor(heating,cooling)
click to toggle source
# File lib/led.rb, line 13 def ledColor(heating,cooling) if(cooling==true) @led="blue" elsif(heating==true) @led="red" else @led="green" end end