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:) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/endpointer/response_presenter.rb', line 4 def present(status: , body: , headers: ) Response.new( status, body, sanitise_headers(uglify_headers(headers)) ) end |