Class: Igniter::Store::CoercedFact

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

Instance Method Summary collapse

Instance Attribute Details

#factObject

Returns the value of attribute fact

Returns:

  • (Object)

    the current value of fact



11
12
13
# File 'lib/igniter/store/igniter_store.rb', line 11

def fact
  @fact
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



11
12
13
# File 'lib/igniter/store/igniter_store.rb', line 11

def value
  @value
end

Instance Method Details

#causationObject



17
# File 'lib/igniter/store/igniter_store.rb', line 17

def causation        = fact.causation

#derivationObject



21
22
# File 'lib/igniter/store/igniter_store.rb', line 21

def derivation       = fact.derivation
# Backward-compat aliases

#idObject



13
# File 'lib/igniter/store/igniter_store.rb', line 13

def id               = fact.id

#keyObject



12
# File 'lib/igniter/store/igniter_store.rb', line 12

def key              = fact.key

#producerObject



20
# File 'lib/igniter/store/igniter_store.rb', line 20

def producer         = fact.producer

#schema_versionObject



16
# File 'lib/igniter/store/igniter_store.rb', line 16

def schema_version   = fact.schema_version

#storeObject



19
# File 'lib/igniter/store/igniter_store.rb', line 19

def store            = fact.store

#transaction_timeObject Also known as: timestamp



14
# File 'lib/igniter/store/igniter_store.rb', line 14

def transaction_time = fact.transaction_time

#valid_timeObject Also known as: term



15
# File 'lib/igniter/store/igniter_store.rb', line 15

def valid_time       = fact.valid_time

#value_hashObject



18
# File 'lib/igniter/store/igniter_store.rb', line 18

def value_hash       = fact.value_hash