Class: RailsGraph::Graph::Nodes::Column
- Inherits:
-
RailsGraph::Graph::Node
- Object
- Entity
- RailsGraph::Graph::Node
- RailsGraph::Graph::Nodes::Column
- Defined in:
- lib/rails_graph/graph/nodes/column.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
Attributes inherited from RailsGraph::Graph::Node
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(column) ⇒ Column
constructor
A new instance of Column.
Methods inherited from RailsGraph::Graph::Node
Methods inherited from Entity
Constructor Details
#initialize(column) ⇒ Column
Returns a new instance of Column.
11 12 13 14 15 |
# File 'lib/rails_graph/graph/nodes/column.rb', line 11 def initialize(column) @column = column super(labels: "Column", name: column.name, properties: build_properties) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
9 10 11 |
# File 'lib/rails_graph/graph/nodes/column.rb', line 9 def column @column end |