Class: Hackle::Event::Exposure
- Inherits:
-
Hackle::Event
- Object
- Hackle::Event
- Hackle::Event::Exposure
- Defined in:
- lib/hackle/events/event.rb
Instance Attribute Summary collapse
-
#experiment ⇒ Object
readonly
Returns the value of attribute experiment.
-
#variation ⇒ Object
readonly
Returns the value of attribute variation.
Attributes inherited from Hackle::Event
Instance Method Summary collapse
-
#initialize(user_id:, experiment:, variation:) ⇒ Exposure
constructor
A new instance of Exposure.
Methods inherited from Hackle::Event
Constructor Details
#initialize(user_id:, experiment:, variation:) ⇒ Exposure
Returns a new instance of Exposure.
10 11 12 13 14 15 |
# File 'lib/hackle/events/event.rb', line 10 def initialize(user_id:, experiment:, variation:) = Event. @user_id = user_id @experiment = experiment @variation = variation end |
Instance Attribute Details
#experiment ⇒ Object (readonly)
Returns the value of attribute experiment.
8 9 10 |
# File 'lib/hackle/events/event.rb', line 8 def experiment @experiment end |
#variation ⇒ Object (readonly)
Returns the value of attribute variation.
8 9 10 |
# File 'lib/hackle/events/event.rb', line 8 def variation @variation end |