Class: Hexagonal::Responses::DeleteResponse
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Hexagonal::Responses::DeleteResponse
- Defined in:
- lib/hexagonal/responses/delete_response.rb
Instance Method Summary collapse
Instance Method Details
#deleted_successfully(object) ⇒ Object
4 5 6 |
# File 'lib/hexagonal/responses/delete_response.rb', line 4 def deleted_successfully(object) status 204 end |
#unauthorized(exception) ⇒ Object
8 9 10 |
# File 'lib/hexagonal/responses/delete_response.rb', line 8 def (exception) error!({ message: exception. }, 401) end |