Class: Alula::CameraGetSdStatusProc::Response

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

Instance Attribute Summary collapse

Attributes inherited from RpcResponse

#data, #http_status, #request_id

Instance Method Summary collapse

Methods inherited from RpcResponse

#ok?

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

#resultObject

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_statusObject

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