Class: Spikard::SecuritySchemeInfo
- Inherits:
-
Object
- Object
- Spikard::SecuritySchemeInfo
- Defined in:
- lib/spikard/config.rb
Overview
Security scheme configuration for OpenAPI documentation.
Supports HTTP (Bearer/JWT) and API Key authentication schemes.
Instance Attribute Summary collapse
-
#bearer_format ⇒ Object
Returns the value of attribute bearer_format.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, scheme: nil, bearer_format: nil, location: nil, name: nil) ⇒ SecuritySchemeInfo
constructor
A new instance of SecuritySchemeInfo.
Constructor Details
#initialize(type:, scheme: nil, bearer_format: nil, location: nil, name: nil) ⇒ SecuritySchemeInfo
Returns a new instance of SecuritySchemeInfo.
221 222 223 224 225 226 227 228 229 |
# File 'lib/spikard/config.rb', line 221 def initialize(type:, scheme: nil, bearer_format: nil, location: nil, name: nil) @type = type @scheme = scheme @bearer_format = bearer_format @location = location @name = name validate! end |
Instance Attribute Details
#bearer_format ⇒ Object
Returns the value of attribute bearer_format.
214 215 216 |
# File 'lib/spikard/config.rb', line 214 def bearer_format @bearer_format end |
#location ⇒ Object
Returns the value of attribute location.
214 215 216 |
# File 'lib/spikard/config.rb', line 214 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
214 215 216 |
# File 'lib/spikard/config.rb', line 214 def name @name end |
#scheme ⇒ Object
Returns the value of attribute scheme.
214 215 216 |
# File 'lib/spikard/config.rb', line 214 def scheme @scheme end |
#type ⇒ Object
Returns the value of attribute type.
214 215 216 |
# File 'lib/spikard/config.rb', line 214 def type @type end |