Class: Rswag3::Api::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rswag3/api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#swagger_filterObject

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_rootObject

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