Class: ArchUnit::Common::Projection::MappedEdge
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Common::Projection::MappedEdge
- Defined in:
- lib/archunit/common/projection/mapped_edge.rb
Overview
The labels produced when a raw dependency edge is mapped into a domain view.
Instance Attribute Summary collapse
-
#source_label ⇒ Object
readonly
Returns the value of attribute source_label.
-
#target_label ⇒ Object
readonly
Returns the value of attribute target_label.
Instance Method Summary collapse
-
#initialize(source_label:, target_label:) ⇒ MappedEdge
constructor
A new instance of MappedEdge.
Constructor Details
#initialize(source_label:, target_label:) ⇒ MappedEdge
Returns a new instance of MappedEdge.
8 9 10 11 12 |
# File 'lib/archunit/common/projection/mapped_edge.rb', line 8 def initialize(source_label:, target_label:) source_label = immutable_label(source_label, :source_label) target_label = immutable_label(target_label, :target_label) super end |
Instance Attribute Details
#source_label ⇒ Object (readonly)
Returns the value of attribute source_label
7 8 9 |
# File 'lib/archunit/common/projection/mapped_edge.rb', line 7 def source_label @source_label end |
#target_label ⇒ Object (readonly)
Returns the value of attribute target_label
7 8 9 |
# File 'lib/archunit/common/projection/mapped_edge.rb', line 7 def target_label @target_label end |