Class: Moult::Flags::Snapshot::Source

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

Instance Method Summary collapse

Instance Attribute Details

#backendObject

Returns the value of attribute backend

Returns:

  • (Object)

    the current value of backend



46
47
48
# File 'lib/moult/flags/snapshot.rb', line 46

def backend
  @backend
end

#exported_atObject

Returns the value of attribute exported_at

Returns:

  • (Object)

    the current value of exported_at



46
47
48
# File 'lib/moult/flags/snapshot.rb', line 46

def exported_at
  @exported_at
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



46
47
48
# File 'lib/moult/flags/snapshot.rb', line 46

def version
  @version
end

Instance Method Details

#to_hObject



47
48
49
# File 'lib/moult/flags/snapshot.rb', line 47

def to_h
  {backend: backend, version: version, exported_at: exported_at}
end