Class: JSONRPC::ErrorResponse
- Inherits:
-
SmartCore::ValueObject
- Object
- SmartCore::ValueObject
- JSONRPC::ErrorResponse
- Defined in:
- lib/jsonrpc/error_response.rb
Overview
Constant Summary collapse
- ErrorSchema =
Class.new(SmartCore::Schema) do schema do required(:code).type(:integer).filled required(:message).type(:string).filled required(:data).type(:hash).filled end end.new
Instance Method Summary collapse
Instance Method Details
#error? ⇒ Boolean
40 |
# File 'lib/jsonrpc/error_response.rb', line 40 def error? = true |
#success? ⇒ Boolean
46 |
# File 'lib/jsonrpc/error_response.rb', line 46 def success? = false |