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