Class: Rswag::SchemaComponents::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/rswag/schema_components/loader.rb

Constant Summary collapse

VALID_TYPES =
%w[
  schemas parameters securitySchemes requestBodies responses headers examples links callbacks
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier = nil) ⇒ Loader

Returns a new instance of Loader.



12
13
14
# File 'lib/rswag/schema_components/loader.rb', line 12

def initialize(identifier = nil)
  @identifier = identifier
end

Instance Attribute Details

#identifierObject

Returns the value of attribute identifier.



6
7
8
# File 'lib/rswag/schema_components/loader.rb', line 6

def identifier
  @identifier
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/rswag/schema_components/loader.rb', line 6

def type
  @type
end