Class: OpenAPIParser::SchemaLoader::Base

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

Overview

loader base class

Direct Known Subclasses

Creator, ValuesLoader

Instance Method Summary collapse

Constructor Details

#initialize(variable_name, options) ⇒ Base

Returns a new instance of Base.

Parameters:

  • variable_name (String)
  • options (Hash)


5
6
7
8
# File 'lib/openapi_parser/concerns/schema_loader/base.rb', line 5

def initialize(variable_name, options)
  @variable_name = variable_name
  @schema_key = options[:schema_key] || variable_name
end

Instance Method Details

#load_data(_target_object, _raw_schema) ⇒ Array<OpenAPIParser::Schemas::Base>?

Parameters:

Returns:



13
14
15
# File 'lib/openapi_parser/concerns/schema_loader/base.rb', line 13

def load_data(_target_object, _raw_schema)
  raise 'need implement'
end