Class: Alula::CameraGetChimeInfoProc::Response
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Alula::CameraGetChimeInfoProc::Response
- Defined in:
- lib/alula/procedures/camera_get_chime_info_proc.rb
Instance Attribute Summary collapse
-
#chime_info ⇒ Object
Returns the value of attribute chime_info.
-
#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 |
# File 'lib/alula/procedures/camera_get_chime_info_proc.rb', line 8 def initialize(response) super(response) @result = response.data['data'] @chime_info = { 'type' => @result['type'], 'duration' => @result['duration'] } end |
Instance Attribute Details
#chime_info ⇒ Object
Returns the value of attribute chime_info.
6 7 8 |
# File 'lib/alula/procedures/camera_get_chime_info_proc.rb', line 6 def chime_info @chime_info end |
#result ⇒ Object
Returns the value of attribute result.
6 7 8 |
# File 'lib/alula/procedures/camera_get_chime_info_proc.rb', line 6 def result @result end |