Class: FeatureHub::Sdk::ClientEvalFeatureContext
- Inherits:
-
ClientContext
- Object
- ClientContext
- FeatureHub::Sdk::ClientEvalFeatureContext
- Defined in:
- lib/feature_hub/sdk/context.rb
Overview
represents the strategies being evaluated locally
Constant Summary
Constants inherited from ClientContext
FeatureHub::Sdk::ClientContext::WELL_KNOWN_KEY_METHODS
Instance Attribute Summary
Attributes inherited from ClientContext
Instance Method Summary collapse
- #build ⇒ Object
- #build_sync ⇒ Object
-
#initialize(repo, edge) ⇒ ClientEvalFeatureContext
constructor
A new instance of ClientEvalFeatureContext.
Methods inherited from ClientContext
#assign, #attribute_value, #boolean, #clear, #country, #default_percentage_key, #device, #enabled?, #exists?, #feature, #flag, #get_attr, #json, #number, #platform, #raw_json, #session_key, #set?, #string, #user_key, #version
Constructor Details
#initialize(repo, edge) ⇒ ClientEvalFeatureContext
Returns a new instance of ClientEvalFeatureContext.
167 168 169 170 171 |
# File 'lib/feature_hub/sdk/context.rb', line 167 def initialize(repo, edge) super(repo) @edge = edge end |
Instance Method Details
#build ⇒ Object
173 174 175 176 |
# File 'lib/feature_hub/sdk/context.rb', line 173 def build @edge&.poll self end |
#build_sync ⇒ Object
178 179 180 |
# File 'lib/feature_hub/sdk/context.rb', line 178 def build_sync self end |