Class: ArchUnit::Common::Projection::MappedEdge

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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_labelObject (readonly)

Returns the value of attribute source_label

Returns:

  • (Object)

    the current value of source_label



7
8
9
# File 'lib/archunit/common/projection/mapped_edge.rb', line 7

def source_label
  @source_label
end

#target_labelObject (readonly)

Returns the value of attribute target_label

Returns:

  • (Object)

    the current value of target_label



7
8
9
# File 'lib/archunit/common/projection/mapped_edge.rb', line 7

def target_label
  @target_label
end