Class: Openapi::Rswag::Api::Configuration
- Inherits:
-
Object
- Object
- Openapi::Rswag::Api::Configuration
- Defined in:
- lib/openapi/rswag/api/configuration.rb
Instance Attribute Summary collapse
-
#swagger_filter ⇒ Object
Returns the value of attribute swagger_filter.
-
#swagger_root ⇒ Object
Returns the value of attribute swagger_root.
Instance Method Summary collapse
Instance Attribute Details
#swagger_filter ⇒ Object
Returns the value of attribute swagger_filter.
5 6 7 |
# File 'lib/openapi/rswag/api/configuration.rb', line 5 def swagger_filter @swagger_filter end |
#swagger_root ⇒ Object
Returns the value of attribute swagger_root.
5 6 7 |
# File 'lib/openapi/rswag/api/configuration.rb', line 5 def swagger_root @swagger_root end |
Instance Method Details
#resolve_swagger_root(env) ⇒ Object
7 8 9 10 |
# File 'lib/openapi/rswag/api/configuration.rb', line 7 def resolve_swagger_root(env) path_params = env['action_dispatch.request.path_parameters'] || {} path_params[:swagger_root] || swagger_root end |