Class: Statsig::ConfigResult
- Inherits:
-
Object
- Object
- Statsig::ConfigResult
- Defined in:
- lib/config_result.rb
Instance Attribute Summary collapse
-
#config_delegate ⇒ Object
Returns the value of attribute config_delegate.
-
#evaluation_details ⇒ Object
Returns the value of attribute evaluation_details.
-
#explicit_parameters ⇒ Object
Returns the value of attribute explicit_parameters.
-
#gate_value ⇒ Object
Returns the value of attribute gate_value.
-
#is_experiment_group ⇒ Object
Returns the value of attribute is_experiment_group.
-
#json_value ⇒ Object
Returns the value of attribute json_value.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#secondary_exposures ⇒ Object
Returns the value of attribute secondary_exposures.
-
#undelegated_sec_exps ⇒ Object
Returns the value of attribute undelegated_sec_exps.
Instance Method Summary collapse
-
#initialize(name, gate_value = false, json_value = {}, rule_id = '', secondary_exposures = [], config_delegate = '', explicit_parameters = [], is_experiment_group: false, evaluation_details: nil) ⇒ ConfigResult
constructor
A new instance of ConfigResult.
Constructor Details
#initialize(name, gate_value = false, json_value = {}, rule_id = '', secondary_exposures = [], config_delegate = '', explicit_parameters = [], is_experiment_group: false, evaluation_details: nil) ⇒ ConfigResult
Returns a new instance of ConfigResult.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/config_result.rb', line 14 def initialize( name, gate_value = false, json_value = {}, rule_id = '', secondary_exposures = [], config_delegate = '', explicit_parameters = [], is_experiment_group: false, evaluation_details: nil) @name = name @gate_value = gate_value @json_value = json_value @rule_id = rule_id @secondary_exposures = secondary_exposures.is_a?(Array) ? secondary_exposures : [] @undelegated_sec_exps = @secondary_exposures @config_delegate = config_delegate @explicit_parameters = explicit_parameters @is_experiment_group = is_experiment_group @evaluation_details = evaluation_details end |
Instance Attribute Details
#config_delegate ⇒ Object
Returns the value of attribute config_delegate.
9 10 11 |
# File 'lib/config_result.rb', line 9 def config_delegate @config_delegate end |
#evaluation_details ⇒ Object
Returns the value of attribute evaluation_details.
12 13 14 |
# File 'lib/config_result.rb', line 12 def evaluation_details @evaluation_details end |
#explicit_parameters ⇒ Object
Returns the value of attribute explicit_parameters.
10 11 12 |
# File 'lib/config_result.rb', line 10 def explicit_parameters @explicit_parameters end |
#gate_value ⇒ Object
Returns the value of attribute gate_value.
4 5 6 |
# File 'lib/config_result.rb', line 4 def gate_value @gate_value end |
#is_experiment_group ⇒ Object
Returns the value of attribute is_experiment_group.
11 12 13 |
# File 'lib/config_result.rb', line 11 def is_experiment_group @is_experiment_group end |
#json_value ⇒ Object
Returns the value of attribute json_value.
5 6 7 |
# File 'lib/config_result.rb', line 5 def json_value @json_value end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/config_result.rb', line 3 def name @name end |
#rule_id ⇒ Object
Returns the value of attribute rule_id.
6 7 8 |
# File 'lib/config_result.rb', line 6 def rule_id @rule_id end |
#secondary_exposures ⇒ Object
Returns the value of attribute secondary_exposures.
7 8 9 |
# File 'lib/config_result.rb', line 7 def secondary_exposures @secondary_exposures end |
#undelegated_sec_exps ⇒ Object
Returns the value of attribute undelegated_sec_exps.
8 9 10 |
# File 'lib/config_result.rb', line 8 def undelegated_sec_exps @undelegated_sec_exps end |