Class: OpenAPIParser::SchemaLoader::Creator

Inherits:
Base
  • Object
show all
Defined in:
lib/openapi_parser/concerns/schema_loader/creator.rb

Overview

loader base class for create OpenAPI::Schemas::Base object

Instance Method Summary collapse

Methods inherited from Base

#load_data

Constructor Details

#initialize(variable_name, options) ⇒ Creator

Returns a new instance of Creator.

Parameters:

  • variable_name (String)
  • options (Hash)


5
6
7
8
9
10
11
# File 'lib/openapi_parser/concerns/schema_loader/creator.rb', line 5

def initialize(variable_name, options)
  super(variable_name, options)

  @klass = options[:klass]
  @allow_reference = options[:reference] || false
  @allow_data_type = options[:allow_data_type]
end