Class: AmplitudeExperiment::FetchOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/experiment/remote/fetch_options.rb

Overview

Fetch options

Instance Attribute Summary collapse

Instance Method Summary collapse

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_assignmentBoolean?

Whether to track assignment events. If not provided, the default is null, which will use server default (to track assignment events).

Returns:

  • (Boolean, nil)

    the value of tracks_assignment



7
8
9
# File 'lib/experiment/remote/fetch_options.rb', line 7

def tracks_assignment
  @tracks_assignment
end

#tracks_exposureBoolean?

Whether to track exposure events. If not provided, the default is null, which will use server default (to not track exposure events).

Returns:

  • (Boolean, nil)

    the value of tracks_exposure



12
13
14
# File 'lib/experiment/remote/fetch_options.rb', line 12

def tracks_exposure
  @tracks_exposure
end