Class: OpenAPISourceTools::ApiObjects::SecurityAlternatives

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/openapi/sourcetools/apiobjects.rb

Overview

Available possibilities.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#schemesObject (readonly)

Returns the value of attribute schemes.



424
425
426
# File 'lib/openapi/sourcetools/apiobjects.rb', line 424

def schemes
  @schemes
end

#set_idObject

Returns the value of attribute set_id.



425
426
427
# File 'lib/openapi/sourcetools/apiobjects.rb', line 425

def set_id
  @set_id
end

#srosObject (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