Class: Gitlab::Experiment::Configuration
- Inherits:
-
Object
- Object
- Gitlab::Experiment::Configuration
- Includes:
- Singleton
- Defined in:
- lib/gitlab/experiment/configuration.rb
Class Attribute Summary collapse
-
.base_class ⇒ Object
Returns the value of attribute base_class.
-
.cache ⇒ Object
Returns the value of attribute cache.
-
.context_hash_strategy ⇒ Object
Returns the value of attribute context_hash_strategy.
-
.cookie_domain ⇒ Object
Returns the value of attribute cookie_domain.
-
.default_rollout ⇒ Object
Returns the value of attribute default_rollout.
-
.inclusion_resolver ⇒ Object
Returns the value of attribute inclusion_resolver.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.name_prefix ⇒ Object
Returns the value of attribute name_prefix.
-
.publishing_behavior ⇒ Object
Returns the value of attribute publishing_behavior.
-
.tracking_behavior ⇒ Object
Returns the value of attribute tracking_behavior.
Class Method Summary collapse
-
.variant_resolver ⇒ Object
TODO: Added deprecation in release 0.5.0.
- .variant_resolver=(block) ⇒ Object
Class Attribute Details
.base_class ⇒ Object
Returns the value of attribute base_class.
71 72 73 |
# File 'lib/gitlab/experiment/configuration.rb', line 71 def base_class @base_class end |
.cache ⇒ Object
Returns the value of attribute cache.
71 72 73 |
# File 'lib/gitlab/experiment/configuration.rb', line 71 def cache @cache end |
.context_hash_strategy ⇒ Object
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 |
.cookie_domain ⇒ Object
Returns the value of attribute cookie_domain.
71 72 73 |
# File 'lib/gitlab/experiment/configuration.rb', line 71 def @cookie_domain end |
.default_rollout ⇒ Object
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_resolver ⇒ Object
Returns the value of attribute inclusion_resolver.
71 72 73 |
# File 'lib/gitlab/experiment/configuration.rb', line 71 def inclusion_resolver @inclusion_resolver end |
.logger ⇒ Object
Returns the value of attribute logger.
71 72 73 |
# File 'lib/gitlab/experiment/configuration.rb', line 71 def logger @logger end |
.name_prefix ⇒ Object
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_behavior ⇒ Object
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_behavior ⇒ Object
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_resolver ⇒ Object
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 |