Class: Rswag::SchemaComponents::Loader
- Inherits:
-
Object
- Object
- Rswag::SchemaComponents::Loader
- 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
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(identifier = nil) ⇒ Loader
constructor
A new instance of Loader.
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
#identifier ⇒ Object
Returns the value of attribute identifier.
6 7 8 |
# File 'lib/rswag/schema_components/loader.rb', line 6 def identifier @identifier end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/rswag/schema_components/loader.rb', line 6 def type @type end |