Module: OpenAPIParser::Parser::Hash
- Included in:
- Core
- Defined in:
- lib/openapi_parser/concerns/parser/hash.rb
Instance Method Summary collapse
Instance Method Details
#_openapi_attr_hash_objects ⇒ Object
2 3 4 |
# File 'lib/openapi_parser/concerns/parser/hash.rb', line 2 def _openapi_attr_hash_objects @_openapi_attr_hash_objects ||= {} end |
#openapi_attr_hash_object(name, klass, options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/openapi_parser/concerns/parser/hash.rb', line 6 def openapi_attr_hash_object(name, klass, = {}) target_klass.send(:attr_reader, name) _openapi_attr_hash_objects[name] = ::OpenAPIParser::SchemaLoader::HashObjectsLoader.new(name, .merge(klass: klass)) end |