Class: Miniswag::Api::Configuration
- Inherits:
-
Object
- Object
- Miniswag::Api::Configuration
- Defined in:
- lib/miniswag/api/configuration.rb
Instance Attribute Summary collapse
-
#openapi_filter ⇒ Object
Returns the value of attribute openapi_filter.
-
#openapi_headers ⇒ Object
Returns the value of attribute openapi_headers.
-
#openapi_root ⇒ Object
Returns the value of attribute openapi_root.
Instance Method Summary collapse
Instance Attribute Details
#openapi_filter ⇒ Object
Returns the value of attribute openapi_filter.
6 7 8 |
# File 'lib/miniswag/api/configuration.rb', line 6 def openapi_filter @openapi_filter end |
#openapi_headers ⇒ Object
Returns the value of attribute openapi_headers.
6 7 8 |
# File 'lib/miniswag/api/configuration.rb', line 6 def openapi_headers @openapi_headers end |
#openapi_root ⇒ Object
Returns the value of attribute openapi_root.
6 7 8 |
# File 'lib/miniswag/api/configuration.rb', line 6 def openapi_root @openapi_root end |
Instance Method Details
#resolve_openapi_root(env) ⇒ Object
8 9 10 11 |
# File 'lib/miniswag/api/configuration.rb', line 8 def resolve_openapi_root(env) path_params = env['action_dispatch.request.path_parameters'] || {} path_params[:openapi_root] || openapi_root end |