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.
323 324 325 326 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 323 def initialize(sros, schemes) @sros = sros @schemes = schemes end |
Instance Attribute Details
#schemes ⇒ Object (readonly)
Returns the value of attribute schemes.
320 321 322 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 320 def schemes @schemes end |
#set_id ⇒ Object
Returns the value of attribute set_id.
321 322 323 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 321 def set_id @set_id end |
#sros ⇒ Object (readonly)
Returns the value of attribute sros.
320 321 322 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 320 def sros @sros end |
Instance Method Details
#<=>(other) ⇒ Object
328 329 330 |
# File 'lib/openapi/sourcetools/apiobjects.rb', line 328 def <=>(other) @sros.sort <=> other.sros.sort end |