Class: Smooth::ErrorResponse
- Defined in:
- lib/smooth/response.rb
Instance Attribute Summary
Attributes inherited from Response
#command_action, #current_user, #event_namespace, #object, #outcome, #request_headers, #serializer, #serializer_klass, #serializer_options, #success
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(error_message, _request_object, *_args) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
- #success? ⇒ Boolean
Methods inherited from Response
#headers, #options, #status, #to_rack
Constructor Details
#initialize(error_message, _request_object, *_args) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
59 60 61 |
# File 'lib/smooth/response.rb', line 59 def initialize(, _request_object, *_args) = end |
Instance Method Details
#body ⇒ Object
67 68 69 70 71 |
# File 'lib/smooth/response.rb', line 67 def body { error: } end |
#success? ⇒ Boolean
63 64 65 |
# File 'lib/smooth/response.rb', line 63 def success? false end |