Class: RailsOpenapiGen::AstNodes::SimplePropertyNode
- Inherits:
-
PropertyNode
- Object
- BaseNode
- PropertyNode
- RailsOpenapiGen::AstNodes::SimplePropertyNode
- 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
Instance Method Summary collapse
-
#initialize(property:, comment_data: nil, is_conditional: false) ⇒ SimplePropertyNode
constructor
A new instance of SimplePropertyNode.
- #property ⇒ Object
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
#property ⇒ Object
67 68 69 |
# File 'lib/rails-openapi-gen/ast_nodes.rb', line 67 def property property_name end |