Class: RailsGraph::Graph::Nodes::Pack

Inherits:
RailsGraph::Graph::Node show all
Defined in:
lib/rails_graph/graph/nodes/pack.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

Constructor Details

#initialize(name, owner) ⇒ Pack

Returns a new instance of Pack.



11
12
13
14
15
# File 'lib/rails_graph/graph/nodes/pack.rb', line 11

def initialize(name, owner)
  @pack_owner = owner

  super(labels: "Pack", name: name, properties: build_properties)
end

Instance Attribute Details

#pack_ownerObject (readonly)

Returns the value of attribute pack_owner.



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

def pack_owner
  @pack_owner
end

Instance Method Details

#identifierObject



17
18
19
# File 'lib/rails_graph/graph/nodes/pack.rb', line 17

def identifier
  name
end