Class: Hexagonal::Responses::DeleteResponse

Inherits:
SimpleDelegator
  • Object
show all
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 unauthorized(exception)
  error!({ message: exception.message }, 401)
end