Class: Seam::Clients::NoiseSensorsSimulate

Inherits:
Object
  • Object
show all
Defined in:
lib/seam/routes/clients/noise_sensors_simulate.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, defaults:) ⇒ NoiseSensorsSimulate

Returns a new instance of NoiseSensorsSimulate.



6
7
8
9
# File 'lib/seam/routes/clients/noise_sensors_simulate.rb', line 6

def initialize(client:, defaults:)
  @client = client
  @defaults = defaults
end

Instance Method Details

#trigger_noise_threshold(device_id:) ⇒ Object



11
12
13
14
15
# File 'lib/seam/routes/clients/noise_sensors_simulate.rb', line 11

def trigger_noise_threshold(device_id:)
  @client.post("/noise_sensors/simulate/trigger_noise_threshold", {device_id: device_id}.compact)

  nil
end