Class: AngieCoreApi::Thermostat

Inherits:
Object
  • Object
show all
Defined in:
lib/angie-core-api/thermostat.rb

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ Thermostat

Returns a new instance of Thermostat.



5
6
7
# File 'lib/angie-core-api/thermostat.rb', line 5

def initialize(provider)
  @provider = provider
end

Instance Method Details

#command(command) ⇒ Object



9
10
11
# File 'lib/angie-core-api/thermostat.rb', line 9

def command(command)
  Client.data(:post, "/appliances/thermostat", { provider: @provider, command: command})
end