Class: AmplitudeExperiment::FetchOptions
- Inherits:
-
Object
- Object
- AmplitudeExperiment::FetchOptions
- Defined in:
- lib/experiment/remote/fetch_options.rb
Overview
Fetch options
Instance Attribute Summary collapse
-
#tracks_assignment ⇒ Boolean?
Whether to track assignment events.
-
#tracks_exposure ⇒ Boolean?
Whether to track exposure events.
Instance Method Summary collapse
-
#initialize(tracks_assignment: nil, tracks_exposure: nil) ⇒ FetchOptions
constructor
A new instance of FetchOptions.
Constructor Details
#initialize(tracks_assignment: nil, tracks_exposure: nil) ⇒ FetchOptions
Returns a new instance of FetchOptions.
14 15 16 17 |
# File 'lib/experiment/remote/fetch_options.rb', line 14 def initialize(tracks_assignment: nil, tracks_exposure: nil) @tracks_assignment = tracks_assignment @tracks_exposure = tracks_exposure end |
Instance Attribute Details
#tracks_assignment ⇒ Boolean?
Whether to track assignment events. If not provided, the default is null, which will use server default (to track assignment events).
7 8 9 |
# File 'lib/experiment/remote/fetch_options.rb', line 7 def tracks_assignment @tracks_assignment end |
#tracks_exposure ⇒ Boolean?
Whether to track exposure events. If not provided, the default is null, which will use server default (to not track exposure events).
12 13 14 |
# File 'lib/experiment/remote/fetch_options.rb', line 12 def tracks_exposure @tracks_exposure end |