Class: Hackle::UserEvent::Exposure
- Inherits:
-
Hackle::UserEvent
- Object
- Hackle::UserEvent
- Hackle::UserEvent::Exposure
- Defined in:
- lib/hackle/events/user_event.rb
Instance Attribute Summary collapse
- #experiment ⇒ Experiment readonly
-
#variation ⇒ Object
readonly
Returns the value of attribute variation.
Attributes inherited from Hackle::UserEvent
Instance Method Summary collapse
-
#initialize(user:, experiment:, variation:) ⇒ Exposure
constructor
A new instance of Exposure.
Methods inherited from Hackle::UserEvent
Constructor Details
#initialize(user:, experiment:, variation:) ⇒ Exposure
Returns a new instance of Exposure.
30 31 32 33 34 |
# File 'lib/hackle/events/user_event.rb', line 30 def initialize(user:, experiment:, variation:) super(user: user) @experiment = experiment @variation = variation end |
Instance Attribute Details
#experiment ⇒ Experiment (readonly)
25 26 27 |
# File 'lib/hackle/events/user_event.rb', line 25 def experiment @experiment end |
#variation ⇒ Object (readonly)
Returns the value of attribute variation.
25 |
# File 'lib/hackle/events/user_event.rb', line 25 attr_reader :experiment, :variation |