Class: Openapi3Parser::NodeFactory::Reference
- Defined in:
- lib/openapi3_parser/node_factory/reference.rb
Instance Attribute Summary collapse
-
#factory ⇒ Object
readonly
Returns the value of attribute factory.
Attributes inherited from Object
Instance Method Summary collapse
- #in_recursive_loop? ⇒ Boolean
-
#initialize(context, factory) ⇒ Reference
constructor
A new instance of Reference.
- #recursive_pointer ⇒ Object
Methods inherited from Object
#allowed_fields, #can_use_default?, #default, #errors, #inspect, #nil_input?, #node, #raw_input, #required_fields, #resolved_input, #valid?
Methods included from ObjectFactory::Dsl
#allow_extensions, #allowed_extensions?, #field, #field_configs, #mutually_exclusive, #mutually_exclusive_fields, #validate, #validations
Constructor Details
#initialize(context, factory) ⇒ Reference
Returns a new instance of Reference.
12 13 14 15 |
# File 'lib/openapi3_parser/node_factory/reference.rb', line 12 def initialize(context, factory) @factory = factory super(context) end |
Instance Attribute Details
#factory ⇒ Object (readonly)
Returns the value of attribute factory.
10 11 12 |
# File 'lib/openapi3_parser/node_factory/reference.rb', line 10 def factory @factory end |
Instance Method Details
#in_recursive_loop? ⇒ Boolean
17 18 19 |
# File 'lib/openapi3_parser/node_factory/reference.rb', line 17 def in_recursive_loop? data["$ref"].in_recursive_loop? end |
#recursive_pointer ⇒ Object
21 22 23 |
# File 'lib/openapi3_parser/node_factory/reference.rb', line 21 def recursive_pointer NodeFactory::RecursivePointer.new(data["$ref"].reference_context) end |