Class: OpenAPISourceTools::ApiObjects::SecurityScheme

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

Overview

Simple holder if security scheme objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, scheme) ⇒ SecurityScheme

Returns a new instance of SecurityScheme.



365
366
367
368
# File 'lib/openapi/sourcetools/apiobjects.rb', line 365

def initialize(name, scheme)
  @name = name
  @scheme = scheme
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



363
364
365
# File 'lib/openapi/sourcetools/apiobjects.rb', line 363

def name
  @name
end

#schemeObject (readonly)

Returns the value of attribute scheme.



363
364
365
# File 'lib/openapi/sourcetools/apiobjects.rb', line 363

def scheme
  @scheme
end

Instance Method Details

#<=>(other) ⇒ Object



370
371
372
# File 'lib/openapi/sourcetools/apiobjects.rb', line 370

def <=>(other)
  @name <=> other.name
end