Class: RailsGraph::Graph::Nodes::Column

Inherits:
RailsGraph::Graph::Node show all
Defined in:
lib/rails_graph/graph/nodes/column.rb

Instance Attribute Summary collapse

Attributes inherited from RailsGraph::Graph::Node

#labels

Attributes inherited from Entity

#id, #name, #properties

Instance Method Summary collapse

Methods inherited from RailsGraph::Graph::Node

#as_json

Methods inherited from Entity

#identifier

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

#columnObject (readonly)

Returns the value of attribute column.



9
10
11
# File 'lib/rails_graph/graph/nodes/column.rb', line 9

def column
  @column
end