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.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def base_class @base_class end |
.cache ⇒ Object
Returns the value of attribute cache.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def cache @cache end |
.context_hash_strategy ⇒ Object
Returns the value of attribute context_hash_strategy.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def context_hash_strategy @context_hash_strategy end |
.cookie_domain ⇒ Object
Returns the value of attribute cookie_domain.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def @cookie_domain end |
.default_rollout ⇒ Object
Returns the value of attribute default_rollout.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def default_rollout @default_rollout end |
.inclusion_resolver ⇒ Object
Returns the value of attribute inclusion_resolver.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def inclusion_resolver @inclusion_resolver end |
.logger ⇒ Object
Returns the value of attribute logger.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def logger @logger end |
.name_prefix ⇒ Object
Returns the value of attribute name_prefix.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def name_prefix @name_prefix end |
.publishing_behavior ⇒ Object
Returns the value of attribute publishing_behavior.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def publishing_behavior @publishing_behavior end |
.tracking_behavior ⇒ Object
Returns the value of attribute tracking_behavior.
68 69 70 |
# File 'lib/gitlab/experiment/configuration.rb', line 68 def tracking_behavior @tracking_behavior end |
Class Method Details
.variant_resolver ⇒ Object
TODO: Added deprecation in release 0.5.0
56 57 58 59 60 |
# File 'lib/gitlab/experiment/configuration.rb', line 56 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
62 63 64 65 66 |
# File 'lib/gitlab/experiment/configuration.rb', line 62 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 |