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.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def base_class
  @base_class
end

.cacheObject

Returns the value of attribute cache.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def cache
  @cache
end

.context_key_bit_lengthObject

Returns the value of attribute context_key_bit_length.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def context_key_bit_length
  @context_key_bit_length
end

.context_key_secretObject

Returns the value of attribute context_key_secret.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def context_key_secret
  @context_key_secret
end

Returns the value of attribute cookie_domain.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def cookie_domain
  @cookie_domain
end

Returns the value of attribute cookie_name.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def cookie_name
  @cookie_name
end

.default_rolloutObject

Returns the value of attribute default_rollout.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def default_rollout
  @default_rollout
end

.loggerObject

Returns the value of attribute logger.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def logger
  @logger
end

.mount_atObject

Returns the value of attribute mount_at.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def mount_at
  @mount_at
end

.name_prefixObject

Returns the value of attribute name_prefix.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def name_prefix
  @name_prefix
end

.nested_behaviorObject

Returns the value of attribute nested_behavior.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def nested_behavior
  @nested_behavior
end

.publishing_behaviorObject

Returns the value of attribute publishing_behavior.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def publishing_behavior
  @publishing_behavior
end

.redirect_url_validatorObject

Returns the value of attribute redirect_url_validator.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def redirect_url_validator
  @redirect_url_validator
end

.strict_registrationObject

Returns the value of attribute strict_registration.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def strict_registration
  @strict_registration
end

.tracking_behaviorObject

Returns the value of attribute tracking_behavior.



172
173
174
# File 'lib/gitlab/experiment/configuration.rb', line 172

def tracking_behavior
  @tracking_behavior
end

Class Method Details

.deprecated(*args, version:, stack: 0) ⇒ Object

Internal warning helpers.



198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/gitlab/experiment/configuration.rb', line 198

def deprecated(*args, version:, stack: 0)
  deprecator = deprecator(version)
  args << args.pop.to_s.gsub('{{release}}', "#{deprecator.gem_name} #{deprecator.deprecation_horizon}")
  args << caller_locations(4 + stack)

  if args.length == 2
    deprecator.warn(*args)
  else
    args[0] = "`#{args[0]}`"
    deprecator.deprecation_warning(*args)
  end
end