Class: ArchUnit::GraphReporting::Projection::GraphReportEdge
- Inherits:
-
Data
- Object
- Data
- ArchUnit::GraphReporting::Projection::GraphReportEdge
- Defined in:
- lib/archunit/graph/projection/graph_report_edge.rb
Overview
Aggregated dependency evidence in a graph report snapshot.
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#evidence ⇒ Object
readonly
Returns the value of attribute evidence.
-
#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:, count:, external:, import_kinds: [], evidence: []) ⇒ GraphReportEdge
constructor
Keywords mirror this immutable report value.
Constructor Details
#initialize(source:, target:, count:, external:, import_kinds: [], evidence: []) ⇒ GraphReportEdge
Keywords mirror this immutable report value.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 13 def initialize( # rubocop:disable Metrics/ParameterLists source:, target:, count:, external:, import_kinds: [], evidence: [] ) source = immutable_string(source, :source) target = immutable_string(target, :target) validate_count(count) validate_external(external) import_kinds = immutable_import_kinds(import_kinds) evidence = Array(evidence).uniq.freeze unless evidence.all?(Common::Extraction::DependencyEvidence) raise ArgumentError, 'evidence must contain DependencyEvidence values' end super end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count
10 11 12 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def count @count end |
#evidence ⇒ Object (readonly)
Returns the value of attribute evidence
10 11 12 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def evidence @evidence end |
#external ⇒ Object (readonly)
Returns the value of attribute external
10 11 12 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def external @external end |
#import_kinds ⇒ Object (readonly)
Returns the value of attribute import_kinds
10 11 12 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def import_kinds @import_kinds end |
#source ⇒ Object (readonly)
Returns the value of attribute source
10 11 12 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target
10 11 12 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def target @target end |
ArchUnitRuby