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
# 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
  @timestamp
end