Class: Openapi3Parser::NodeFactories::Reference

Inherits:
Object
  • Object
show all
Includes:
Openapi3Parser::NodeFactory::Object
Defined in:
lib/openapi3_parser/node_factories/reference.rb

Constant Summary

Constants included from Openapi3Parser::NodeFactory

Openapi3Parser::NodeFactory::EXTENSION_REGEX

Instance Attribute Summary collapse

Attributes included from Openapi3Parser::NodeFactory

#context

Instance Method Summary collapse

Methods included from Openapi3Parser::NodeFactory::Object

#allowed_extensions?, #field_configs, included

Methods included from Openapi3Parser::NodeFactory

#allowed_default?, #errors, included, #nil_input?, #node, #valid?

Constructor Details

#initialize(context, factory) ⇒ Reference

Returns a new instance of Reference.



15
16
17
18
# File 'lib/openapi3_parser/node_factories/reference.rb', line 15

def initialize(context, factory)
  @factory = factory
  super(context)
end

Instance Attribute Details

#factoryObject (readonly)

Returns the value of attribute factory.



13
14
15
# File 'lib/openapi3_parser/node_factories/reference.rb', line 13

def factory
  @factory
end