Class: Rigor::FlowContribution::Provenance
- Inherits:
-
Data
- Object
- Data
- Rigor::FlowContribution::Provenance
- Defined in:
- lib/rigor/flow_contribution.rb
Overview
Provenance carries the metadata every contribution needs for diagnostic attribution and cache invalidation. ‘source_family` mirrors Analysis::Diagnostic::DEFAULT_SOURCE_FAMILY; `descriptor` is the Cache::Descriptor this contribution attaches to (or `nil` when the contribution does not need its own cache slice).
Instance Attribute Summary collapse
-
#descriptor ⇒ Object
readonly
Returns the value of attribute descriptor.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#plugin_id ⇒ Object
readonly
Returns the value of attribute plugin_id.
-
#source_family ⇒ Object
readonly
Returns the value of attribute source_family.
Class Method Summary collapse
Instance Attribute Details
#descriptor ⇒ Object (readonly)
Returns the value of attribute descriptor
33 34 35 |
# File 'lib/rigor/flow_contribution.rb', line 33 def descriptor @descriptor end |
#node ⇒ Object (readonly)
Returns the value of attribute node
33 34 35 |
# File 'lib/rigor/flow_contribution.rb', line 33 def node @node end |
#plugin_id ⇒ Object (readonly)
Returns the value of attribute plugin_id
33 34 35 |
# File 'lib/rigor/flow_contribution.rb', line 33 def plugin_id @plugin_id end |
#source_family ⇒ Object (readonly)
Returns the value of attribute source_family
33 34 35 |
# File 'lib/rigor/flow_contribution.rb', line 33 def source_family @source_family end |
Class Method Details
.builtin ⇒ Object
34 35 36 |
# File 'lib/rigor/flow_contribution.rb', line 34 def self.builtin new(source_family: :builtin, plugin_id: nil, node: nil, descriptor: nil) end |