Class: Alula::DeviceSignalAddProc::Response
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Alula::DeviceSignalAddProc::Response
- Defined in:
- lib/alula/procedures/device_signal_add_proc.rb
Instance Attribute Summary
Attributes inherited from RpcResponse
#data, #http_status, #request_id, #result
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Methods inherited from RpcResponse
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 10 11 |
# File 'lib/alula/procedures/device_signal_add_proc.rb', line 5 def initialize(response) super(response) # # This RPC response gives a new EventLog item data = response.data['result']['data'][0] @data = Alula::DeviceEventLog.new(data['id'], data['attributes']) end |