Class: OpenAPIParser::SchemaLoader::HashBodyLoader
- Defined in:
- lib/openapi_parser/concerns/schema_loader/hash_body_loader.rb
Overview
hash body object loader
Instance Method Summary collapse
-
#initialize(variable_name, options) ⇒ HashBodyLoader
constructor
A new instance of HashBodyLoader.
- #load_data(target_object, raw_schema) ⇒ Array<OpenAPIParser::Schemas::Base>?
Constructor Details
#initialize(variable_name, options) ⇒ HashBodyLoader
Returns a new instance of HashBodyLoader.
5 6 7 8 9 |
# File 'lib/openapi_parser/concerns/schema_loader/hash_body_loader.rb', line 5 def initialize(variable_name, ) super(variable_name, ) @reject_keys = [:reject_keys] ? [:reject_keys].map(&:to_s) : [] end |
Instance Method Details
#load_data(target_object, raw_schema) ⇒ Array<OpenAPIParser::Schemas::Base>?
14 15 16 17 |
# File 'lib/openapi_parser/concerns/schema_loader/hash_body_loader.rb', line 14 def load_data(target_object, raw_schema) # raw schema always exist because if not exist' this object don't create create_hash_body_objects(target_object, raw_schema) end |