Method: Endpointer::ResponsePresenter#present

Defined in:
lib/endpointer/response_presenter.rb

#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