Class: Gitlab::Experiment::Variant
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::Experiment::Variant
- Defined in:
- lib/gitlab/experiment/variant.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/gitlab/experiment/variant.rb', line 5 def name @name end |
#payload ⇒ Object
Returns the value of attribute payload
5 6 7 |
# File 'lib/gitlab/experiment/variant.rb', line 5 def payload @payload end |
Instance Method Details
#group ⇒ Object
6 7 8 |
# File 'lib/gitlab/experiment/variant.rb', line 6 def group name == 'control' ? :control : :experiment end |