Class: ArchUnit::Metrics::Extraction::FieldInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/archunit/metrics/extraction/metric_info.rb

Overview

One instance field and the methods that read or write it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, accessed_by: []) ⇒ FieldInfo

Returns a new instance of FieldInfo.



65
66
67
68
69
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 65

def initialize(name:, accessed_by: [])
  name = immutable_string(name, :name)
  accessed_by = immutable_names(accessed_by, :accessed_by)
  super
end

Instance Attribute Details

#accessed_byObject (readonly)

Returns the value of attribute accessed_by

Returns:

  • (Object)

    the current value of accessed_by



62
63
64
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 62

def accessed_by
  @accessed_by
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



62
63
64
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 62

def name
  @name
end