Class: Gitlab::GrapeOpenapi::Configuration
- Inherits:
-
Object
- Object
- Gitlab::GrapeOpenapi::Configuration
- Defined in:
- lib/gitlab/grape_openapi/configuration.rb
Instance Attribute Summary collapse
-
#annotations ⇒ Object
Returns the value of attribute annotations.
-
#api_prefix ⇒ Object
Returns the value of attribute api_prefix.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#coercer_mappings ⇒ Object
Returns the value of attribute coercer_mappings.
-
#excluded_api_classes ⇒ Object
Returns the value of attribute excluded_api_classes.
-
#info ⇒ Object
Returns the value of attribute info.
-
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
-
#servers ⇒ Object
Returns the value of attribute servers.
-
#tag_overrides ⇒ Object
Returns the value of attribute tag_overrides.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 9 def initialize @api_prefix = "api" @api_version = "v1" @excluded_api_classes = [] @info = nil @servers = [] @security_schemes = [] @tag_overrides = {} @annotations = {} @coercer_mappings = {} end |
Instance Attribute Details
#annotations ⇒ Object
Returns the value of attribute annotations.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def annotations @annotations end |
#api_prefix ⇒ Object
Returns the value of attribute api_prefix.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def api_prefix @api_prefix end |
#api_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def api_version @api_version end |
#coercer_mappings ⇒ Object
Returns the value of attribute coercer_mappings.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def coercer_mappings @coercer_mappings end |
#excluded_api_classes ⇒ Object
Returns the value of attribute excluded_api_classes.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def excluded_api_classes @excluded_api_classes end |
#info ⇒ Object
Returns the value of attribute info.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def info @info end |
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def security_schemes @security_schemes end |
#servers ⇒ Object
Returns the value of attribute servers.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def servers @servers end |
#tag_overrides ⇒ Object
Returns the value of attribute tag_overrides.
6 7 8 |
# File 'lib/gitlab/grape_openapi/configuration.rb', line 6 def tag_overrides @tag_overrides end |