Class: ArchUnit::GraphReporting::Projection::GraphReportNode
- Inherits:
-
Data
- Object
- Data
- ArchUnit::GraphReporting::Projection::GraphReportNode
- 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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(id:, label:) ⇒ GraphReportNode
constructor
A new instance of GraphReportNode.
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
#id ⇒ Object (readonly)
Returns the value of attribute id
7 8 9 |
# File 'lib/archunit/graph/projection/graph_report_node.rb', line 7 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label
7 8 9 |
# File 'lib/archunit/graph/projection/graph_report_node.rb', line 7 def label @label end |