Class: Alula::DeviceSignalUpdateProc::Response

Inherits:
RpcResponse
  • Object
show all
Defined in:
lib/alula/procedures/device_signal_update_proc.rb

Instance Attribute Summary

Attributes inherited from RpcResponse

#data, #request_id, #result

Instance Method Summary collapse

Methods inherited from RpcResponse

#ok?

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



5
6
7
8
9
10
11
# File 'lib/alula/procedures/device_signal_update_proc.rb', line 5

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