lib/legion/extensions/sleepiq/runners/bed.rb in lex-sleepiq-0.1.2 vs lib/legion/extensions/sleepiq/runners/bed.rb in lex-sleepiq-0.2.0
- old
+ new
@@ -1,22 +1,39 @@
module Legion::Extensions::Sleepiq
module Runners
module Bed
include Legion::Extensions::Helpers::Lex
extend Legion::Extensions::Sleepiq::Helpers::Client
+ def sleep_number(side: 'R', **)
+ client.sleep_number(side)
+ end
- def self.family_status(payload); end
+ def set_sleep_number(side: 'R', number: 50, **)
+ client.update_sleep_number(number, side)
+ end
- def self.get_sleep_number_favorite(payload); end
+ def get_sleep_number_favorite(side: 'R', **)
+ client.sleep_number_fav(side)
+ end
- def self.set_sleep_number_favorite(payload); end # rubocop:disable Naming/AccessorMethodName
+ def set_sleep_number_favorite(number:, side: 'R', **)
+ client.update_sleep_number_fav
+ end
- def self.status(payload); end
+ def status(**)
+ client.status
+ end
- def self.get_pause_mode(payload); end
+ def get_pause_mode(**)
+ client.pause_mode
+ end
- def self.set_pause_mode(payload); end # rubocop:disable Naming/AccessorMethodName
+ def set_pause_mode(mode: 'off', **)
+ client.update_pause_mode(mode)
+ end
- def self.get(payload); end
+ def get(**)
+ client.bed
+ end
end
end
end