Class: Igniter::Store::DerivationRule
- Inherits:
-
Struct
- Object
- Struct
- Igniter::Store::DerivationRule
- 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
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#source_filters ⇒ Object
Returns the value of attribute source_filters.
-
#source_store ⇒ Object
Returns the value of attribute source_store.
-
#target_key ⇒ Object
Returns the value of attribute target_key.
-
#target_store ⇒ Object
Returns the value of attribute target_store.
Instance Attribute Details
#rule ⇒ Object
Returns the value of attribute rule
33 34 35 |
# File 'lib/igniter/store/access_path.rb', line 33 def rule @rule end |
#source_filters ⇒ Object
Returns the value of attribute source_filters
33 34 35 |
# File 'lib/igniter/store/access_path.rb', line 33 def source_filters @source_filters end |
#source_store ⇒ Object
Returns the value of attribute source_store
33 34 35 |
# File 'lib/igniter/store/access_path.rb', line 33 def source_store @source_store end |
#target_key ⇒ Object
Returns the value of attribute target_key
33 34 35 |
# File 'lib/igniter/store/access_path.rb', line 33 def target_key @target_key end |
#target_store ⇒ Object
Returns the value of attribute target_store
33 34 35 |
# File 'lib/igniter/store/access_path.rb', line 33 def target_store @target_store end |