Class: QRPC::Protocol::Abstract::Response Abstract
- Defined in:
- lib/qrpc/protocol/abstract/response.rb
Overview
This class is abstract.
Abstract response implementation.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Object
Class Method Summary collapse
-
.parse(raw) ⇒ Response
abstract
Parses the data for new object.
Instance Method Summary collapse
-
#error ⇒ Exception
Returns response error.
-
#error? ⇒ Boolean
Indicates, error state of the response.
-
#id ⇒ Object
Returns ID of the request.
-
#initialize(init = { }) ⇒ Response
constructor
abstract
Constructor.
-
#result ⇒ Object
Returns response result.
Methods inherited from Object
Constructor Details
Class Method Details
.parse(raw) ⇒ Response
This method is abstract.
Parses the data for new object.
59 60 61 |
# File 'lib/qrpc/protocol/abstract/response.rb', line 59 def self.parse(raw) not_implemented end |
Instance Method Details
#error ⇒ Exception
Returns response error.
78 79 80 |
# File 'lib/qrpc/protocol/abstract/response.rb', line 78 def error not_implemented end |
#error? ⇒ Boolean
Indicates, error state of the response.
87 88 89 |
# File 'lib/qrpc/protocol/abstract/response.rb', line 87 def error? not_implemented end |
#id ⇒ Object
Returns ID of the request.
68 69 70 |
# File 'lib/qrpc/protocol/abstract/response.rb', line 68 def id not_implemented end |
#result ⇒ Object
Returns response result.
96 97 98 |
# File 'lib/qrpc/protocol/abstract/response.rb', line 96 def result not_implemented end |