Class: Openapi3Parser::NodeFactory::Fields::Reference::RecursiveResolvedInput

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/openapi3_parser/node_factory/fields/reference.rb

Overview

Used in the place of a hash for resolved input so the value can be looked up at runtime avoiding a recursive loop.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(factory) ⇒ RecursiveResolvedInput

Returns a new instance of RecursiveResolvedInput.



89
90
91
# File 'lib/openapi3_parser/node_factory/fields/reference.rb', line 89

def initialize(factory)
  @factory = factory
end

Instance Attribute Details

#factoryObject (readonly)

Returns the value of attribute factory.



87
88
89
# File 'lib/openapi3_parser/node_factory/fields/reference.rb', line 87

def factory
  @factory
end

Instance Method Details

#valueObject



93
94
95
# File 'lib/openapi3_parser/node_factory/fields/reference.rb', line 93

def value
  @factory.resolved_input
end