Class: ArchUnit::GraphReporting::Projection::GraphReportEdge

Inherits:
Data
  • Object
show all
Defined in:
lib/archunit/graph/projection/graph_report_edge.rb

Overview

Aggregated dependency evidence in a graph report snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject (readonly)

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



9
10
11
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9

def count
  @count
end

#externalObject (readonly)

Returns the value of attribute external

Returns:

  • (Object)

    the current value of external



9
10
11
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9

def external
  @external
end

#import_kindsObject (readonly)

Returns the value of attribute import_kinds

Returns:

  • (Object)

    the current value of import_kinds



9
10
11
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9

def import_kinds
  @import_kinds
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



9
10
11
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9

def source
  @source
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



9
10
11
# File 'lib/archunit/graph/projection/graph_report_edge.rb', line 9

def target
  @target
end