Class: ArchUnit::Common::Extraction::Edge
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Common::Extraction::Edge
- Defined in:
- lib/archunit/common/extraction/edge.rb
Instance Attribute Summary collapse
-
#external ⇒ Object
readonly
Returns the value of attribute external.
-
#import_kinds ⇒ Object
readonly
Returns the value of attribute import_kinds.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(source:, target:, external:, import_kinds: []) ⇒ Edge
constructor
A new instance of Edge.
Constructor Details
#initialize(source:, target:, external:, import_kinds: []) ⇒ Edge
Returns a new instance of Edge.
9 10 11 12 13 14 15 16 |
# File 'lib/archunit/common/extraction/edge.rb', line 9 def initialize(source:, target:, external:, import_kinds: []) source = immutable_identifier(source, :source) target = immutable_identifier(target, :target) validate_external(external) import_kinds = immutable_import_kinds(import_kinds) super end |
Instance Attribute Details
#external ⇒ Object (readonly)
Returns the value of attribute external
8 9 10 |
# File 'lib/archunit/common/extraction/edge.rb', line 8 def external @external end |
#import_kinds ⇒ Object (readonly)
Returns the value of attribute import_kinds
8 9 10 |
# File 'lib/archunit/common/extraction/edge.rb', line 8 def import_kinds @import_kinds end |
#source ⇒ Object (readonly)
Returns the value of attribute source
8 9 10 |
# File 'lib/archunit/common/extraction/edge.rb', line 8 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target
8 9 10 |
# File 'lib/archunit/common/extraction/edge.rb', line 8 def target @target end |