class Focus::ChangeBlinkColor
Public Instance Methods
perform()
click to toggle source
# File lib/focus/actions/change_blink_color.rb, line 3 def perform url = "#{config.blink_server}/fadeToRGB?rgb=%#{context.color}" res = Utils::WebClient.get(url) fail_action!(error: "Could not change blink(1) color.") unless res.success? end