Class: Alula::CameraGetSdStatusProc::Response
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Alula::CameraGetSdStatusProc::Response
- Defined in:
- lib/alula/procedures/camera_get_sd_status_proc.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
-
#sd_card_status ⇒ Object
Returns the value of attribute sd_card_status.
Attributes inherited from RpcResponse
#data, #http_status, #request_id
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.
12 13 14 15 16 17 18 19 20 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 12 def initialize(response) super(response) @result = response.data['result'] @sd_card_status = { 'format' => @result['format'], 'datetime' => @result['datetime'], 'progress' => @result['progress'] } end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
10 11 12 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 10 def result @result end |
#sd_card_status ⇒ Object
Returns the value of attribute sd_card_status.
10 11 12 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 10 def sd_card_status @sd_card_status end |