Class: Gitlab::Experiment::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/gitlab/experiment/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_classObject

Returns the value of attribute base_class.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def base_class
  @base_class
end

.cacheObject

Returns the value of attribute cache.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def cache
  @cache
end

.context_hash_strategyObject

Returns the value of attribute context_hash_strategy.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def context_hash_strategy
  @context_hash_strategy
end

Returns the value of attribute cookie_domain.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def cookie_domain
  @cookie_domain
end

.default_rolloutObject

Returns the value of attribute default_rollout.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def default_rollout
  @default_rollout
end

.inclusion_resolverObject

Returns the value of attribute inclusion_resolver.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def inclusion_resolver
  @inclusion_resolver
end

.loggerObject

Returns the value of attribute logger.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def logger
  @logger
end

.name_prefixObject

Returns the value of attribute name_prefix.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def name_prefix
  @name_prefix
end

.publishing_behaviorObject

Returns the value of attribute publishing_behavior.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def publishing_behavior
  @publishing_behavior
end

.tracking_behaviorObject

Returns the value of attribute tracking_behavior.



71
72
73
# File 'lib/gitlab/experiment/configuration.rb', line 71

def tracking_behavior
  @tracking_behavior
end

Class Method Details

.variant_resolverObject

TODO: Added deprecation in release 0.5.0



59
60
61
62
63
# File 'lib/gitlab/experiment/configuration.rb', line 59

def variant_resolver
  ActiveSupport::Deprecation.warn('variant_resolver is deprecated, instead use `inclusion_resolver` with a' \
    'block that returns a boolean.')
  @inclusion_resolver
end

.variant_resolver=(block) ⇒ Object



65
66
67
68
69
# File 'lib/gitlab/experiment/configuration.rb', line 65

def variant_resolver=(block)
  ActiveSupport::Deprecation.warn('variant_resolver is deprecated, instead use `inclusion_resolver` with a' \
    'block that returns a boolean.')
  @inclusion_resolver = block
end