Sha256: fcc3e9278e3588a693f37aca8bf70f9aa7a71c5994f50eea6cb2ee2506c820e4
Contents?: true
Size: 780 Bytes
Versions: 83
Compression:
Stored size: 780 Bytes
Contents
module Alula class DeviceSignalDeliveredProc < Alula::RpcResource class Response < Alula::RpcResponse def initialize(response) super(response) # # This RPC response gives an updated EventLog item data = response.data['result']['data'][0] @data = Alula::DeviceEventLog.new(data['id'], data['attributes']) end end 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 end end
Version data entries
83 entries across 83 versions & 1 rubygems