Class: OpenapiFirst::Router::RequestMatch
- Inherits:
-
Data
- Object
- Data
- OpenapiFirst::Router::RequestMatch
- Defined in:
- lib/openapi_first/router.rb
Overview
Returned by #match
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#request_definition ⇒ Object
readonly
Returns the value of attribute request_definition.
-
#responses ⇒ Object
readonly
Returns the value of attribute responses.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
11 12 13 |
# File 'lib/openapi_first/router.rb', line 11 def error @error end |
#params ⇒ Object (readonly)
Returns the value of attribute params
11 12 13 |
# File 'lib/openapi_first/router.rb', line 11 def params @params end |
#request_definition ⇒ Object (readonly)
Returns the value of attribute request_definition
11 12 13 |
# File 'lib/openapi_first/router.rb', line 11 def request_definition @request_definition end |
#responses ⇒ Object (readonly)
Returns the value of attribute responses
11 12 13 |
# File 'lib/openapi_first/router.rb', line 11 def responses @responses end |
Instance Method Details
#match_response(status:, content_type:) ⇒ Object
12 13 14 15 |
# File 'lib/openapi_first/router.rb', line 12 def match_response(status:, content_type:) FindResponse.call(responses, status, content_type, request_method: request_definition.request_method, path: request_definition.path) end |