Class: Subflag::Rails::PrefetchedFlag

Inherits:
Struct
  • Object
show all
Defined in:
lib/subflag/rails/client.rb

Overview

Lightweight struct for caching prefetched flag results Used by ActiveRecord and Memory backends where we don't have Subflag::EvaluationResult

Instance Attribute Summary collapse

Instance Attribute Details

#flag_keyObject

Returns the value of attribute flag_key

Returns:

  • (Object)

    the current value of flag_key



7
8
9
# File 'lib/subflag/rails/client.rb', line 7

def flag_key
  @flag_key
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



7
8
9
# File 'lib/subflag/rails/client.rb', line 7

def reason
  @reason
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/subflag/rails/client.rb', line 7

def value
  @value
end

#variantObject

Returns the value of attribute variant

Returns:

  • (Object)

    the current value of variant



7
8
9
# File 'lib/subflag/rails/client.rb', line 7

def variant
  @variant
end