Class: OpenAPIParser::SchemaLoader::HashObjectsLoader

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

Overview

hash object loader

Instance Method Summary collapse

Methods inherited from Creator

#initialize

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

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

Parameters:

Returns:



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

def load_data(target_object, raw_schema)
  create_attr_hash_object(target_object, raw_schema[ref_name_base.to_s])
end