Class: OpenAPIParser::SchemaLoader::ValuesLoader

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

Overview

data type values loader

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from OpenAPIParser::SchemaLoader::Base

Instance Method Details

#load_data(target_object, raw_schema) ⇒ Array<OpenAPIParser::Schemas::Base>?

Parameters:

Returns:



6
7
8
9
# File 'lib/openapi_parser/concerns/schema_loader/values_loader.rb', line 6

def load_data(target_object, raw_schema)
  variable_set(target_object, variable_name, raw_schema[schema_key.to_s])
  nil # this loader not return schema object
end