Class: OpenAPISourceTools::ApiObjects::SecurityAlternatives
- Inherits:
-
Object
- Object
- OpenAPISourceTools::ApiObjects::SecurityAlternatives
- Includes:
- Comparable
- Defined in:
- lib/openapi/sourcetools/apiobjects.rb
Overview
Available possibilities.
Instance Attribute Summary collapse
-
#schemes ⇒ Object
readonly
Returns the value of attribute schemes.
-
#set_id ⇒ Object
Returns the value of attribute set_id.
-
#sros ⇒ Object
readonly
Returns the value of attribute sros.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(sros, schemes) ⇒ SecurityAlternatives
constructor
A new instance of SecurityAlternatives.
Constructor Details
#initialize(sros, schemes) ⇒ SecurityAlternatives
Returns a new instance of SecurityAlternatives.
427 428 429 430 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 427 def initialize(sros, schemes) @sros = sros @schemes = schemes end |
Instance Attribute Details
#schemes ⇒ Object (readonly)
Returns the value of attribute schemes.
424 425 426 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 424 def schemes @schemes end |
#set_id ⇒ Object
Returns the value of attribute set_id.
425 426 427 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 425 def set_id @set_id end |
#sros ⇒ Object (readonly)
Returns the value of attribute sros.
424 425 426 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 424 def sros @sros end |
Instance Method Details
#<=>(other) ⇒ Object
432 433 434 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 432 def <=>(other) @sros.sort <=> other.sros.sort end |