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