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