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.



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

def initialize(factory)
  @factory = factory
end

Instance Attribute Details

#factoryObject (readonly)

Returns the value of attribute factory.



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

def factory
  @factory
end

Instance Method Details

#valueObject



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

def value
  @factory.resolved_input
end