Class: DevCycle::BucketedUserConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, environment, features, feature_var_map, variable_var_map, variables, known_variable_keys) ⇒ BucketedUserConfig

Returns a new instance of BucketedUserConfig.



11
12
13
14
15
16
17
18
19
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 11

def initialize(project, environment, features, feature_var_map, variable_var_map, variables, known_variable_keys)
  @project = project
  @environment = environment
  @features = features
  @feature_variation_map = feature_var_map
  @variable_variation_map = variable_var_map
  @variables = variables
  @known_variable_keys = known_variable_keys
end

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



4
5
6
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 4

def environment
  @environment
end

#feature_variation_mapObject

Returns the value of attribute feature_variation_map.



6
7
8
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 6

def feature_variation_map
  @feature_variation_map
end

#featuresObject

Returns the value of attribute features.



5
6
7
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 5

def features
  @features
end

#known_variable_keysObject

Returns the value of attribute known_variable_keys.



9
10
11
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 9

def known_variable_keys
  @known_variable_keys
end

#projectObject

Returns the value of attribute project.



3
4
5
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 3

def project
  @project
end

#variable_variation_mapObject

Returns the value of attribute variable_variation_map.



7
8
9
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 7

def variable_variation_map
  @variable_variation_map
end

#variablesObject

Returns the value of attribute variables.



8
9
10
# File 'lib/devcycle-ruby-server-sdk/localbucketing/bucketed_user_config.rb', line 8

def variables
  @variables
end