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.
245 246 247 248 249 250 251 252 253 |
# File 'lib/spikard/config.rb', line 245 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.
238 239 240 |
# File 'lib/spikard/config.rb', line 238 def bearer_format @bearer_format end |
#location ⇒ Object
Returns the value of attribute location.
238 239 240 |
# File 'lib/spikard/config.rb', line 238 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
238 239 240 |
# File 'lib/spikard/config.rb', line 238 def name @name end |
#scheme ⇒ Object
Returns the value of attribute scheme.
238 239 240 |
# File 'lib/spikard/config.rb', line 238 def scheme @scheme end |
#type ⇒ Object
Returns the value of attribute type.
238 239 240 |
# File 'lib/spikard/config.rb', line 238 def type @type end |