Class: Gitlab::Experiment::Variant

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/experiment/variant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/gitlab/experiment/variant.rb', line 5

def name
  @name
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



5
6
7
# File 'lib/gitlab/experiment/variant.rb', line 5

def payload
  @payload
end

Instance Method Details

#groupObject



6
7
8
# File 'lib/gitlab/experiment/variant.rb', line 6

def group
  name == 'control' ? :control : :experiment
end