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_key_bit_length ⇒ Object
Returns the value of attribute context_key_bit_length.
-
.context_key_secret ⇒ Object
Returns the value of attribute context_key_secret.
-
.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.
-
.mount_at ⇒ Object
Returns the value of attribute mount_at.
-
.name_prefix ⇒ Object
Returns the value of attribute name_prefix.
-
.publishing_behavior ⇒ Object
Returns the value of attribute publishing_behavior.
-
.redirect_url_validator ⇒ Object
Returns the value of attribute redirect_url_validator.
-
.tracking_behavior ⇒ Object
Returns the value of attribute tracking_behavior.
Class Method Summary collapse
-
.context_hash_strategy=(block) ⇒ Object
TODO: Added deprecation in release 0.6.0.
-
.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.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def base_class @base_class end |
.cache ⇒ Object
Returns the value of attribute cache.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def cache @cache end |
.context_key_bit_length ⇒ Object
Returns the value of attribute context_key_bit_length.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def context_key_bit_length @context_key_bit_length end |
.context_key_secret ⇒ Object
Returns the value of attribute context_key_secret.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def context_key_secret @context_key_secret end |
.cookie_domain ⇒ Object
Returns the value of attribute cookie_domain.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def @cookie_domain end |
.default_rollout ⇒ Object
Returns the value of attribute default_rollout.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def default_rollout @default_rollout end |
.inclusion_resolver ⇒ Object
Returns the value of attribute inclusion_resolver.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def inclusion_resolver @inclusion_resolver end |
.logger ⇒ Object
Returns the value of attribute logger.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def logger @logger end |
.mount_at ⇒ Object
Returns the value of attribute mount_at.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def mount_at @mount_at end |
.name_prefix ⇒ Object
Returns the value of attribute name_prefix.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def name_prefix @name_prefix end |
.publishing_behavior ⇒ Object
Returns the value of attribute publishing_behavior.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def publishing_behavior @publishing_behavior end |
.redirect_url_validator ⇒ Object
Returns the value of attribute redirect_url_validator.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def redirect_url_validator @redirect_url_validator end |
.tracking_behavior ⇒ Object
Returns the value of attribute tracking_behavior.
83 84 85 |
# File 'lib/gitlab/experiment/configuration.rb', line 83 def tracking_behavior @tracking_behavior end |
Class Method Details
.context_hash_strategy=(block) ⇒ Object
TODO: Added deprecation in release 0.6.0
64 65 66 67 68 |
# File 'lib/gitlab/experiment/configuration.rb', line 64 def context_hash_strategy=(block) ActiveSupport::Deprecation.warn('context_hash_strategy has been deprecated, instead configure' \ ' `context_key_secret` and `context_key_bit_length`.') @__context_hash_strategy = block end |
.variant_resolver ⇒ Object
TODO: Added deprecation in release 0.5.0
71 72 73 74 75 |
# File 'lib/gitlab/experiment/configuration.rb', line 71 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
77 78 79 80 81 |
# File 'lib/gitlab/experiment/configuration.rb', line 77 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 |