Class: Seam::Clients::NoiseSensors
- Inherits:
-
Object
- Object
- Seam::Clients::NoiseSensors
- Defined in:
- lib/seam/routes/clients/noise_sensors.rb
Instance Method Summary collapse
-
#initialize(client:, defaults:) ⇒ NoiseSensors
constructor
A new instance of NoiseSensors.
- #list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, customer_key: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, page_cursor: nil, search: nil, space_id: nil, unstable_location_id: nil, user_identifier_key: nil) ⇒ Object
- #noise_thresholds ⇒ Object
- #simulate ⇒ Object
Constructor Details
#initialize(client:, defaults:) ⇒ NoiseSensors
Returns a new instance of NoiseSensors.
6 7 8 9 |
# File 'lib/seam/routes/clients/noise_sensors.rb', line 6 def initialize(client:, defaults:) @client = client @defaults = defaults end |
Instance Method Details
#list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, customer_key: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, page_cursor: nil, search: nil, space_id: nil, unstable_location_id: nil, user_identifier_key: nil) ⇒ Object
19 20 21 22 23 |
# File 'lib/seam/routes/clients/noise_sensors.rb', line 19 def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, customer_key: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, page_cursor: nil, search: nil, space_id: nil, unstable_location_id: nil, user_identifier_key: nil) res = @client.post("/noise_sensors/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: , customer_key: customer_key, device_ids: device_ids, device_type: device_type, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, page_cursor: page_cursor, search: search, space_id: space_id, unstable_location_id: unstable_location_id, user_identifier_key: user_identifier_key}.compact) Seam::Resources::Device.load_from_response(res.body["devices"]) end |
#noise_thresholds ⇒ Object
11 12 13 |
# File 'lib/seam/routes/clients/noise_sensors.rb', line 11 def noise_thresholds @noise_thresholds ||= Seam::Clients::NoiseSensorsNoiseThresholds.new(client: @client, defaults: @defaults) end |
#simulate ⇒ Object
15 16 17 |
# File 'lib/seam/routes/clients/noise_sensors.rb', line 15 def simulate @simulate ||= Seam::Clients::NoiseSensorsSimulate.new(client: @client, defaults: @defaults) end |