Class: Openapi3Parser::NodeFactory::RecursivePointer

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi3_parser/node_factory/recursive_pointer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference_context) ⇒ RecursivePointer

Returns a new instance of RecursivePointer.



8
9
10
# File 'lib/openapi3_parser/node_factory/recursive_pointer.rb', line 8

def initialize(reference_context)
  @reference_context = reference_context
end

Instance Attribute Details

#reference_contextObject (readonly)

Returns the value of attribute reference_context.



6
7
8
# File 'lib/openapi3_parser/node_factory/recursive_pointer.rb', line 6

def reference_context
  @reference_context
end

Instance Method Details

#nodeObject



12
13
14
# File 'lib/openapi3_parser/node_factory/recursive_pointer.rb', line 12

def node
  reference_context.node
end