Class: ArchUnit::Common::Extraction::Edge

Inherits:
Data
  • Object
show all
Defined in:
lib/archunit/common/extraction/edge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#externalObject (readonly)

Returns the value of attribute external

Returns:

  • (Object)

    the current value of external



8
9
10
# File 'lib/archunit/common/extraction/edge.rb', line 8

def external
  @external
end

#import_kindsObject (readonly)

Returns the value of attribute import_kinds

Returns:

  • (Object)

    the current value of import_kinds



8
9
10
# File 'lib/archunit/common/extraction/edge.rb', line 8

def import_kinds
  @import_kinds
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



8
9
10
# File 'lib/archunit/common/extraction/edge.rb', line 8

def source
  @source
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



8
9
10
# File 'lib/archunit/common/extraction/edge.rb', line 8

def target
  @target
end