Class: Rswag3::Api::Configuration
- Inherits:
-
Object
- Object
- Rswag3::Api::Configuration
- Defined in:
- lib/rswag3/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.
4 5 6 |
# File 'lib/rswag3/api/configuration.rb', line 4 def swagger_filter @swagger_filter end |
#swagger_root ⇒ Object
Returns the value of attribute swagger_root.
4 5 6 |
# File 'lib/rswag3/api/configuration.rb', line 4 def swagger_root @swagger_root end |
Instance Method Details
#resolve_swagger_root(env) ⇒ Object
6 7 8 9 |
# File 'lib/rswag3/api/configuration.rb', line 6 def resolve_swagger_root(env) path_params = env['action_dispatch.request.path_parameters'] || {} path_params[:swagger_root] || swagger_root end |