Class: ArchUnit::Metrics::Extraction::FieldInfo
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Metrics::Extraction::FieldInfo
- 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
-
#accessed_by ⇒ Object
readonly
Returns the value of attribute accessed_by.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, accessed_by: []) ⇒ FieldInfo
constructor
A new instance of FieldInfo.
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_by ⇒ Object (readonly)
Returns the value of attribute accessed_by
62 63 64 |
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 62 def accessed_by @accessed_by end |
#name ⇒ Object (readonly)
Returns the value of attribute name
62 63 64 |
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 62 def name @name end |