Sha256: 1ce3a83599e662471c84db457ee96da485c68ee38cc4b7c8d145fec9d28fa7f7
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal: true module Switchbot class Light extend Forwardable def_delegators :@device, :commands, :on, :off def initialize(client:, device_id:) @device = Device.new(client: client, device_id: device_id) end def brightness_up commands(command: 'brightnessUp') end def brightness_down commands(command: 'brightnessDown') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
switchbot-0.8.0 | lib/switchbot/light.rb |