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
-
#progress ⇒ Object
Returns the value of attribute progress.
-
#result ⇒ Object
Returns the value of attribute result.
-
#sd_format ⇒ Object
Returns the value of attribute sd_format.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
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 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 12 def initialize(response) super(response) @result = response.data['result'] @sd_format = @result['format'] @timestamp = @result['datetime'] @progress = @result['progress']['percent'] end |
Instance Attribute Details
#progress ⇒ Object
Returns the value of attribute progress.
10 11 12 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 10 def progress @progress end |
#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_format ⇒ Object
Returns the value of attribute sd_format.
10 11 12 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 10 def sd_format @sd_format end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
10 11 12 |
# File 'lib/alula/procedures/camera_get_sd_status_proc.rb', line 10 def @timestamp end |