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.



323
324
325
326
# File 'lib/openapi/sourcetools/apiobjects.rb', line 323

def initialize(sros, schemes)
  @sros = sros
  @schemes = schemes
end

Instance Attribute Details

#schemesObject (readonly)

Returns the value of attribute schemes.



320
321
322
# File 'lib/openapi/sourcetools/apiobjects.rb', line 320

def schemes
  @schemes
end

#set_idObject

Returns the value of attribute set_id.



321
322
323
# File 'lib/openapi/sourcetools/apiobjects.rb', line 321

def set_id
  @set_id
end

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