Class: Alula::DeviceSignalUpdateProc
- Inherits:
-
RpcResource
- Object
- RpcResource
- Alula::DeviceSignalUpdateProc
- Defined in:
- lib/alula/procedures/device_signal_update_proc.rb
Defined Under Namespace
Classes: Response
Class Method Summary collapse
Methods inherited from RpcResource
Class Method Details
.call(dealer_id:, device_id:, group_id:, log_format:, mac:, relay_status:) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/alula/procedures/device_signal_update_proc.rb', line 14 def self.call(dealer_id:, device_id:, group_id:, log_format:, mac:, relay_status:) payload = { dealerId: dealer_id, deviceId: device_id, groupId: group_id, logFormat: log_format, mac: mac, relayStatus: relay_status, } request( http_method: :post, path: '/rpc/v1/devices/signal/update', payload: payload, handler: Response ) end |