Class: EppoClient::ExperimentConfigurationDto
- Inherits:
-
Object
- Object
- EppoClient::ExperimentConfigurationDto
- Defined in:
- lib/configuration_requestor.rb
Overview
A class for the experiment configuration object
Instance Attribute Summary collapse
-
#allocations ⇒ Object
readonly
Returns the value of attribute allocations.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#overrides ⇒ Object
readonly
Returns the value of attribute overrides.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
-
#subject_shards ⇒ Object
readonly
Returns the value of attribute subject_shards.
Instance Method Summary collapse
-
#initialize(exp_config) ⇒ ExperimentConfigurationDto
constructor
A new instance of ExperimentConfigurationDto.
Constructor Details
#initialize(exp_config) ⇒ ExperimentConfigurationDto
Returns a new instance of ExperimentConfigurationDto.
33 34 35 36 37 38 39 40 |
# File 'lib/configuration_requestor.rb', line 33 def initialize(exp_config) @subject_shards = exp_config['subjectShards'] @enabled = exp_config['enabled'] @name = exp_config['name'] || nil @overrides = exp_config['overrides'] || {} @rules = exp_config['rules'] || [] @allocations = exp_config['allocations'] end |
Instance Attribute Details
#allocations ⇒ Object (readonly)
Returns the value of attribute allocations.
31 32 33 |
# File 'lib/configuration_requestor.rb', line 31 def allocations @allocations end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
31 32 33 |
# File 'lib/configuration_requestor.rb', line 31 def enabled @enabled end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/configuration_requestor.rb', line 31 def name @name end |
#overrides ⇒ Object (readonly)
Returns the value of attribute overrides.
31 32 33 |
# File 'lib/configuration_requestor.rb', line 31 def overrides @overrides end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
31 32 33 |
# File 'lib/configuration_requestor.rb', line 31 def rules @rules end |
#subject_shards ⇒ Object (readonly)
Returns the value of attribute subject_shards.
31 32 33 |
# File 'lib/configuration_requestor.rb', line 31 def subject_shards @subject_shards end |