Class: Igniter::Store::DerivationRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/igniter/store/access_path.rb

Overview

Derivation rule: when facts matching source_store/source_filters change, call rule.(source_facts) and write the result to target_store at target_key. source_filters: {} means all latest facts per key in that store. rule returning nil skips the derived write. target_key may be a String/Symbol or a callable(Array<Fact>) → String.

Instance Attribute Summary collapse

Instance Attribute Details

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



33
34
35
# File 'lib/igniter/store/access_path.rb', line 33

def rule
  @rule
end

#source_filtersObject

Returns the value of attribute source_filters

Returns:

  • (Object)

    the current value of source_filters



33
34
35
# File 'lib/igniter/store/access_path.rb', line 33

def source_filters
  @source_filters
end

#source_storeObject

Returns the value of attribute source_store

Returns:

  • (Object)

    the current value of source_store



33
34
35
# File 'lib/igniter/store/access_path.rb', line 33

def source_store
  @source_store
end

#target_keyObject

Returns the value of attribute target_key

Returns:

  • (Object)

    the current value of target_key



33
34
35
# File 'lib/igniter/store/access_path.rb', line 33

def target_key
  @target_key
end

#target_storeObject

Returns the value of attribute target_store

Returns:

  • (Object)

    the current value of target_store



33
34
35
# File 'lib/igniter/store/access_path.rb', line 33

def target_store
  @target_store
end