lib/legion/extensions/sleepiq/runners/foundation.rb in lex-sleepiq-0.1.2 vs lib/legion/extensions/sleepiq/runners/foundation.rb in lex-sleepiq-0.2.0

- old
+ new

@@ -2,15 +2,31 @@ module Runners module Foundation include Legion::Extensions::Helpers::Lex extend Legion::Extensions::Sleepiq::Helpers::Client - def self.status(payload); end + def get_light(light: 1, **) + client.light(light) + end - def self.preset(payload); end + def set_light(light:, setting: 0, **) + client.set_light(light, setting) + end - def self.system(payload); end + def preset(preset:, side: 'R', slow_speed: 0, **) + client.preset(preset, side, slow_speed) + end - def self.motion(payload); end + def stop_motion(side: 'R', **) + client.stop_motion(side) + end + + def status(**) + client.foundation_status + end + + def system(**) + client.system + end end end end