Class: OpenAPIParser::SchemaLoader::Creator
- Defined in:
- lib/openapi_parser/concerns/schema_loader/creator.rb
Overview
loader base class for create OpenAPI::Schemas::Base object
Direct Known Subclasses
HashBodyLoader, HashObjectsLoader, ListLoader, ObjectsLoader
Instance Method Summary collapse
-
#initialize(variable_name, options) ⇒ Creator
constructor
A new instance of Creator.
Methods inherited from Base
Constructor Details
#initialize(variable_name, options) ⇒ Creator
Returns a new instance of Creator.
5 6 7 8 9 10 11 |
# File 'lib/openapi_parser/concerns/schema_loader/creator.rb', line 5 def initialize(variable_name, ) super(variable_name, ) @klass = [:klass] @allow_reference = [:reference] || false @allow_data_type = [:allow_data_type] end |