Class: Alula::CameraGetInfoProc::Response
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Alula::CameraGetInfoProc::Response
- Defined in:
- lib/alula/procedures/camera_get_info_proc.rb
Instance Attribute Summary collapse
-
#pagination ⇒ Object
Returns the value of attribute pagination.
-
#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.
Methods inherited from RpcResponse
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/alula/procedures/camera_get_info_proc.rb', line 8 def initialize(response) super(response) @result = response.data['data'] pagination = response.data['metaData'] @pagination = Alula::Pagination.new( { 'total' => pagination['totalHits'], 'number' => pagination['page'], 'size' => pagination['size'] } ) end |
Instance Attribute Details
#pagination ⇒ Object
Returns the value of attribute pagination.
6 7 8 |
# File 'lib/alula/procedures/camera_get_info_proc.rb', line 6 def pagination @pagination end |
#result ⇒ Object
Returns the value of attribute result.
6 7 8 |
# File 'lib/alula/procedures/camera_get_info_proc.rb', line 6 def result @result end |