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.



261
262
263
264
# File 'lib/openapi/sourcetools/apiobjects.rb', line 261

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



259
260
261
# File 'lib/openapi/sourcetools/apiobjects.rb', line 259

def name
  @name
end

#schemeObject (readonly)

Returns the value of attribute scheme.



259
260
261
# File 'lib/openapi/sourcetools/apiobjects.rb', line 259

def scheme
  @scheme
end

Instance Method Details

#<=>(other) ⇒ Object



266
267
268
# File 'lib/openapi/sourcetools/apiobjects.rb', line 266

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