Class: Alula::DeviceSignalDeliveredProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/device_signal_delivered_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(dealer_id:, device_id:, group_id:, log_format:, mac:) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/alula/procedures/device_signal_delivered_proc.rb', line 14

def self.call(dealer_id:, device_id:, group_id:, log_format:, mac:)
  payload = {
    dealerId: dealer_id,
    deviceId: device_id,
    groupId: group_id,
    logFormat: log_format,
    mac: mac,
  }

  request( 
    http_method: :post,
    path: '/rpc/v1/devices/signal/delivered',
    payload: payload,
    handler: Response
  )
end