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.
-
#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: []) ⇒ GraphReportEdge
constructor
A new instance of GraphReportEdge.
Constructor Details
#initialize(source:, target:, count:, external:, import_kinds: []) ⇒ GraphReportEdge
Returns a new instance of GraphReportEdge.
10 11 12 13 14 15 16 17 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 10 def initialize(source:, target:, count:, external:, import_kinds: []) source = immutable_string(source, :source) target = immutable_string(target, :target) validate_count(count) validate_external(external) import_kinds = immutable_import_kinds(import_kinds) super end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count
9 10 11 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9 def count @count end |
#external ⇒ Object (readonly)
Returns the value of attribute external
9 10 11 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9 def external @external end |
#import_kinds ⇒ Object (readonly)
Returns the value of attribute import_kinds
9 10 11 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9 def import_kinds @import_kinds end |
#source ⇒ Object (readonly)
Returns the value of attribute source
9 10 11 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target
9 10 11 |
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9 def target @target end |