Class: Rigor::FlowContribution::Provenance

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#descriptorObject (readonly)

Returns the value of attribute descriptor

Returns:

  • (Object)

    the current value of descriptor



33
34
35
# File 'lib/rigor/flow_contribution.rb', line 33

def descriptor
  @descriptor
end

#nodeObject (readonly)

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



33
34
35
# File 'lib/rigor/flow_contribution.rb', line 33

def node
  @node
end

#plugin_idObject (readonly)

Returns the value of attribute plugin_id

Returns:

  • (Object)

    the current value of plugin_id



33
34
35
# File 'lib/rigor/flow_contribution.rb', line 33

def plugin_id
  @plugin_id
end

#source_familyObject (readonly)

Returns the value of attribute source_family

Returns:

  • (Object)

    the current value of source_family



33
34
35
# File 'lib/rigor/flow_contribution.rb', line 33

def source_family
  @source_family
end

Class Method Details

.builtinObject



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