Class: Moult::Flags::Snapshot::Source
- Inherits:
-
Struct
- Object
- Struct
- Moult::Flags::Snapshot::Source
- Defined in:
- lib/moult/flags/snapshot.rb
Overview
Provenance of a merged provider snapshot. Captured into the protected
contract (analysis.provider) so a consumer can see where the staleness
evidence came from. exported_at also seeds the deferred time-decay slice.
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#exported_at ⇒ Object
Returns the value of attribute exported_at.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend
46 47 48 |
# File 'lib/moult/flags/snapshot.rb', line 46 def backend @backend end |
#exported_at ⇒ Object
Returns the value of attribute exported_at
46 47 48 |
# File 'lib/moult/flags/snapshot.rb', line 46 def exported_at @exported_at end |
#version ⇒ Object
Returns the value of attribute version
46 47 48 |
# File 'lib/moult/flags/snapshot.rb', line 46 def version @version end |
Instance Method Details
#to_h ⇒ Object
47 48 49 |
# File 'lib/moult/flags/snapshot.rb', line 47 def to_h {backend: backend, version: version, exported_at: exported_at} end |