Class: Subflag::Rails::PrefetchedFlag
- Inherits:
-
Struct
- Object
- Struct
- Subflag::Rails::PrefetchedFlag
- 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
-
#flag_key ⇒ Object
Returns the value of attribute flag_key.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#value ⇒ Object
Returns the value of attribute value.
-
#variant ⇒ Object
Returns the value of attribute variant.
Instance Attribute Details
#flag_key ⇒ Object
Returns the value of attribute flag_key
7 8 9 |
# File 'lib/subflag/rails/client.rb', line 7 def flag_key @flag_key end |
#reason ⇒ Object
Returns the value of attribute reason
7 8 9 |
# File 'lib/subflag/rails/client.rb', line 7 def reason @reason end |
#value ⇒ Object
Returns the value of attribute value
7 8 9 |
# File 'lib/subflag/rails/client.rb', line 7 def value @value end |
#variant ⇒ Object
Returns the value of attribute variant
7 8 9 |
# File 'lib/subflag/rails/client.rb', line 7 def variant @variant end |