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

Version Path
alula-ruby-2.6.3 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.6.2 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.6.1 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.6.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.5.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.4.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.3.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.2.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.1.2 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.1.1 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.1.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-2.0.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.10.5 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.10.4 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.10.3 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.10.2 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.10.1 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.10.0 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.9.17 lib/alula/procedures/device_signal_delivered_proc.rb
alula-ruby-1.9.16 lib/alula/procedures/device_signal_delivered_proc.rb