Class: ArchUnit::GraphReporting::Projection::GraphReportNode

Inherits:
Data
  • Object
show all
Defined in:
lib/archunit/graph/projection/graph_report_node.rb

Overview

Stable node identity and display label in a graph report snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, label:) ⇒ GraphReportNode

Returns a new instance of GraphReportNode.



8
9
10
# File 'lib/archunit/graph/projection/graph_report_node.rb', line 8

def initialize(id:, label:)
  super(id: immutable_string(id, :id), label: immutable_string(label, :label))
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



7
8
9
# File 'lib/archunit/graph/projection/graph_report_node.rb', line 7

def id
  @id
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/archunit/graph/projection/graph_report_node.rb', line 7

def label
  @label
end