Class: Absurdity::Variant
- Inherits:
-
Object
- Object
- Absurdity::Variant
- Defined in:
- lib/absurdity/variant.rb
Instance Attribute Summary collapse
-
#experiment_slug ⇒ Object
readonly
Returns the value of attribute experiment_slug.
-
#identity_id ⇒ Object
readonly
Returns the value of attribute identity_id.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(slug, experiment_slug, identity_id) ⇒ Variant
constructor
A new instance of Variant.
- #save ⇒ Object
Constructor Details
#initialize(slug, experiment_slug, identity_id) ⇒ Variant
Returns a new instance of Variant.
9 10 11 12 13 |
# File 'lib/absurdity/variant.rb', line 9 def initialize(slug, experiment_slug, identity_id) @slug = slug @experiment_slug = experiment_slug @identity_id = identity_id end |
Instance Attribute Details
#experiment_slug ⇒ Object (readonly)
Returns the value of attribute experiment_slug.
8 9 10 |
# File 'lib/absurdity/variant.rb', line 8 def experiment_slug @experiment_slug end |
#identity_id ⇒ Object (readonly)
Returns the value of attribute identity_id.
8 9 10 |
# File 'lib/absurdity/variant.rb', line 8 def identity_id @identity_id end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
8 9 10 |
# File 'lib/absurdity/variant.rb', line 8 def slug @slug end |