Class: ArchUnit::Common::Projection::ProjectedNode

Inherits:
Data
  • Object
show all
Defined in:
lib/archunit/common/projection/projected_node.rb

Overview

A graph node with its incoming and outgoing raw dependency edges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label:, incoming: [], outgoing: []) ⇒ ProjectedNode

Returns a new instance of ProjectedNode.



10
11
12
13
14
15
# File 'lib/archunit/common/projection/projected_node.rb', line 10

def initialize(label:, incoming: [], outgoing: [])
  label = immutable_label(label)
  incoming = immutable_edges(incoming, :incoming)
  outgoing = immutable_edges(outgoing, :outgoing)
  super
end

Instance Attribute Details

#incomingObject (readonly)

Returns the value of attribute incoming

Returns:

  • (Object)

    the current value of incoming



9
10
11
# File 'lib/archunit/common/projection/projected_node.rb', line 9

def incoming
  @incoming
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



9
10
11
# File 'lib/archunit/common/projection/projected_node.rb', line 9

def label
  @label
end

#outgoingObject (readonly)

Returns the value of attribute outgoing

Returns:

  • (Object)

    the current value of outgoing



9
10
11
# File 'lib/archunit/common/projection/projected_node.rb', line 9

def outgoing
  @outgoing
end