Class: Alula::CameraGetServerConfigProc::Response
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Alula::CameraGetServerConfigProc::Response
- Defined in:
- lib/alula/procedures/camera_get_svr_config_proc.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#result ⇒ Object
Returns the value of attribute result.
Attributes inherited from RpcResponse
#data, #http_status, #request_id
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #ok? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ Response
8 9 10 11 |
# File 'lib/alula/procedures/camera_get_svr_config_proc.rb', line 8 def initialize(response) super(response) @result = response.data.dig('data', 'data') end |
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd.
6 7 8 |
# File 'lib/alula/procedures/camera_get_svr_config_proc.rb', line 6 def cmd @cmd end |
#result ⇒ Object
Returns the value of attribute result.
6 7 8 |
# File 'lib/alula/procedures/camera_get_svr_config_proc.rb', line 6 def result @result end |
Instance Method Details
#ok? ⇒ Boolean
13 14 15 |
# File 'lib/alula/procedures/camera_get_svr_config_proc.rb', line 13 def ok? super && @cmd == 'getSvrConfig' end |