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