Class: Moult::Flags::Snapshot::FlagState

Inherits:
Struct
  • Object
show all
Defined in:
lib/moult/flags/snapshot.rb

Overview

The provider's normalised state for one flag key. +enabled+/+archived+/ has_targeting are the facts Moult::Flags::Staleness judges; default_variant and updated_at are captured for context and the deferred time-decay seed.

Instance Attribute Summary collapse

Instance Attribute Details

#archivedObject

Returns the value of attribute archived

Returns:

  • (Object)

    the current value of archived



55
56
57
# File 'lib/moult/flags/snapshot.rb', line 55

def archived
  @archived
end

#default_variantObject

Returns the value of attribute default_variant

Returns:

  • (Object)

    the current value of default_variant



55
56
57
# File 'lib/moult/flags/snapshot.rb', line 55

def default_variant
  @default_variant
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



55
56
57
# File 'lib/moult/flags/snapshot.rb', line 55

def enabled
  @enabled
end

#has_targetingObject

Returns the value of attribute has_targeting

Returns:

  • (Object)

    the current value of has_targeting



55
56
57
# File 'lib/moult/flags/snapshot.rb', line 55

def has_targeting
  @has_targeting
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



55
56
57
# File 'lib/moult/flags/snapshot.rb', line 55

def key
  @key
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



55
56
57
# File 'lib/moult/flags/snapshot.rb', line 55

def updated_at
  @updated_at
end