Class: Switchbot::Lock
- Inherits:
-
Object
- Object
- Switchbot::Lock
- Extended by:
- Forwardable
- Defined in:
- lib/switchbot/lock.rb
Instance Method Summary collapse
-
#initialize(client:, device_id:) ⇒ Lock
constructor
A new instance of Lock.
- #lock ⇒ Object
- #unlock ⇒ Object
Constructor Details
Instance Method Details
#lock ⇒ Object
13 14 15 |
# File 'lib/switchbot/lock.rb', line 13 def lock commands(command: 'lock') end |
#unlock ⇒ Object
17 18 19 |
# File 'lib/switchbot/lock.rb', line 17 def unlock commands(command: 'unlock') end |