Class: EppoClient::ExperimentConfigurationDto

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration_requestor.rb

Overview

A class for the experiment configuration object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#allocationsObject (readonly)

Returns the value of attribute allocations.



31
32
33
# File 'lib/configuration_requestor.rb', line 31

def allocations
  @allocations
end

#enabledObject (readonly)

Returns the value of attribute enabled.



31
32
33
# File 'lib/configuration_requestor.rb', line 31

def enabled
  @enabled
end

#nameObject (readonly)

Returns the value of attribute name.



31
32
33
# File 'lib/configuration_requestor.rb', line 31

def name
  @name
end

#overridesObject (readonly)

Returns the value of attribute overrides.



31
32
33
# File 'lib/configuration_requestor.rb', line 31

def overrides
  @overrides
end

#rulesObject (readonly)

Returns the value of attribute rules.



31
32
33
# File 'lib/configuration_requestor.rb', line 31

def rules
  @rules
end

#subject_shardsObject (readonly)

Returns the value of attribute subject_shards.



31
32
33
# File 'lib/configuration_requestor.rb', line 31

def subject_shards
  @subject_shards
end