class Focus::StrobeBlinkColor
Public Instance Methods
perform()
click to toggle source
# File lib/focus/actions/strobe_blink_color.rb, line 3 def perform res = Utils::WebClient.get(url) fail_action!(error: res) unless res.success? end
Private Instance Methods
url()
click to toggle source
# File lib/focus/actions/strobe_blink_color.rb, line 10 def url "#{config.blink_server}/pattern?rgb=%#{context.color}&time=1.5&repeats=0" end