Class: Switchbot::Bot

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/switchbot/bot.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, device_id:) ⇒ Bot

Returns a new instance of Bot.



9
10
11
# File 'lib/switchbot/bot.rb', line 9

def initialize(client:, device_id:)
  @device = Device.new(client: client, device_id: device_id)
end

Instance Method Details

#pressObject



13
14
15
# File 'lib/switchbot/bot.rb', line 13

def press
  commands(command: 'press')
end