Class: Endpointer::ResponsePresenter
- Inherits:
-
Object
- Object
- Endpointer::ResponsePresenter
- Defined in:
- lib/endpointer/response_presenter.rb
Instance Method Summary collapse
Instance Method Details
#present(status:, body:, headers:, request_body:, resource:) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/endpointer/response_presenter.rb', line 5 def present(status: , body: , headers: , request_body: , resource: ) Response.new( status, substituted_body(request_body, body, resource), sanitise_headers(uglify_headers(headers)) ) end |