Sha256: 0080dbfc7e711a65cbf9d01e4f601d7f288b0373c573bba5b334224bf81c8968

Contents?: true

Size: 435 Bytes

Versions: 40

Compression:

Stored size: 435 Bytes

Contents

module OpenAPIParser::Parser::Object
  def _openapi_attr_objects
    @_openapi_attr_objects ||= {}
  end

  def openapi_attr_objects(*names, klass)
    names.each { |name| openapi_attr_object(name, klass) }
  end

  def openapi_attr_object(name, klass, options = {})
    target_klass.send(:attr_reader, name)
    _openapi_attr_objects[name] = OpenAPIParser::SchemaLoader::ObjectsLoader.new(name, options.merge(klass: klass))
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
openapi_parser-2.2.2 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-2.2.1 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-2.2.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-2.1.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-2.0.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser_firetail-1.0.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-1.0.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-1.0.0.beta1 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.15.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.14.1 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.14.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.13.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.12.1 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.12.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.11.2 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.11.1 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.11.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.10.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.9.0 lib/openapi_parser/concerns/parser/object.rb
openapi_parser-0.8.0 lib/openapi_parser/concerns/parser/object.rb