Class: RailsOpenapiGen::AstNodes::SimplePropertyNode

Inherits:
PropertyNode show all
Defined in:
lib/rails-openapi-gen/ast_nodes.rb

Overview

Legacy property node classes for backward compatibility

Instance Attribute Summary

Attributes inherited from PropertyNode

#comment_data, #component_name, #is_component_ref, #is_conditional, #property_name

Attributes inherited from BaseNode

#children, #metadata, #parent

Instance Method Summary collapse

Methods inherited from PropertyNode

#accept, #description, #enum_values, #openapi_type, #optional?, #required?, #to_h

Methods inherited from BaseNode

#accept, #add_child, #debug_line, #descendants, #leaf?, #pretty_print, #remove_child, #root, #root?, #summary_attributes, #to_h

Constructor Details

#initialize(property:, comment_data: nil, is_conditional: false) ⇒ SimplePropertyNode

Returns a new instance of SimplePropertyNode.



63
64
65
# File 'lib/rails-openapi-gen/ast_nodes.rb', line 63

def initialize(property:, comment_data: nil, is_conditional: false)
  super(property_name: property, comment_data: comment_data, is_conditional: is_conditional)
end

Instance Method Details

#propertyObject



67
68
69
# File 'lib/rails-openapi-gen/ast_nodes.rb', line 67

def property
  property_name
end