Class: OpenAPISourceTools::ApiObjects::SecurityScheme
- Inherits:
-
Object
- Object
- OpenAPISourceTools::ApiObjects::SecurityScheme
- Includes:
- Comparable
- Defined in:
- lib/openapi/sourcetools/apiobjects.rb
Overview
Simple holder if security scheme objects.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(name, scheme) ⇒ SecurityScheme
constructor
A new instance of SecurityScheme.
Constructor Details
#initialize(name, scheme) ⇒ SecurityScheme
Returns a new instance of SecurityScheme.
261 262 263 264 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 261 def initialize(name, scheme) @name = name @scheme = scheme end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
259 260 261 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 259 def name @name end |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
259 260 261 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 259 def scheme @scheme end |
Instance Method Details
#<=>(other) ⇒ Object
266 267 268 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 266 def <=>(other) @name <=> other.name end |