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(context) ⇒ RecursiveResolvedInput

Returns a new instance of RecursiveResolvedInput.



73
74
75
# File 'lib/openapi3_parser/node_factory/fields/reference.rb', line 73

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



71
72
73
# File 'lib/openapi3_parser/node_factory/fields/reference.rb', line 71

def context
  @context
end

Instance Method Details

#resolved_inputObject



77
78
79
# File 'lib/openapi3_parser/node_factory/fields/reference.rb', line 77

def resolved_input
  context.resolved_input
end