Class: Igniter::Store::CoercedFact
- Inherits:
-
Struct
- Object
- Struct
- Igniter::Store::CoercedFact
- Defined in:
- lib/igniter/store/igniter_store.rb
Overview
Thin wrapper returned from read paths when a schema coercion is registered. Delegates identity fields to the underlying fact; exposes the coerced value.
Instance Attribute Summary collapse
-
#fact ⇒ Object
Returns the value of attribute fact.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #causation ⇒ Object
- #derivation ⇒ Object
- #id ⇒ Object
- #key ⇒ Object
- #producer ⇒ Object
- #schema_version ⇒ Object
- #store ⇒ Object
- #transaction_time ⇒ Object (also: #timestamp)
- #valid_time ⇒ Object (also: #term)
- #value_hash ⇒ Object
Instance Attribute Details
#fact ⇒ Object
Returns the value of attribute fact
11 12 13 |
# File 'lib/igniter/store/igniter_store.rb', line 11 def fact @fact end |
#value ⇒ Object
Returns the value of attribute value
11 12 13 |
# File 'lib/igniter/store/igniter_store.rb', line 11 def value @value end |
Instance Method Details
#causation ⇒ Object
17 |
# File 'lib/igniter/store/igniter_store.rb', line 17 def causation = fact.causation |
#derivation ⇒ Object
21 22 |
# File 'lib/igniter/store/igniter_store.rb', line 21 def derivation = fact.derivation # Backward-compat aliases |
#id ⇒ Object
13 |
# File 'lib/igniter/store/igniter_store.rb', line 13 def id = fact.id |
#key ⇒ Object
12 |
# File 'lib/igniter/store/igniter_store.rb', line 12 def key = fact.key |
#producer ⇒ Object
20 |
# File 'lib/igniter/store/igniter_store.rb', line 20 def producer = fact.producer |
#schema_version ⇒ Object
16 |
# File 'lib/igniter/store/igniter_store.rb', line 16 def schema_version = fact.schema_version |
#store ⇒ Object
19 |
# File 'lib/igniter/store/igniter_store.rb', line 19 def store = fact.store |
#transaction_time ⇒ Object Also known as: timestamp
14 |
# File 'lib/igniter/store/igniter_store.rb', line 14 def transaction_time = fact.transaction_time |
#valid_time ⇒ Object Also known as: term
15 |
# File 'lib/igniter/store/igniter_store.rb', line 15 def valid_time = fact.valid_time |
#value_hash ⇒ Object
18 |
# File 'lib/igniter/store/igniter_store.rb', line 18 def value_hash = fact.value_hash |