Class: OursprivacyIngest::Models::ExperimentAssignmentParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OursprivacyIngest::Models::ExperimentAssignmentParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/oursprivacy_ingest/models/experiment_assignment_params.rb,
sig/oursprivacy_ingest/models/experiment_assignment_params.rbs
Overview
Defined Under Namespace
Classes: Context
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::OursprivacyIngest
Instance Attribute Summary collapse
-
#context ⇒ OursprivacyIngest::Models::ExperimentAssignmentParams::Context?
Optional page context for URL + query-param eligibility.
-
#experiment_key ⇒ String
The experiment's stable key.
-
#token ⇒ String
The experiment token (
exp_*) for the experiment settings holding this experiment. -
#track_impression ⇒ Boolean?
When true (default), an
$experiment_impressionevent is enqueued and the visitor'sexperiment_assignmentsmap is updated. -
#visitor_id ⇒ String
Stable identifier for the visitor — typically the Ours visitor id from your browser cookie, or your own server-side user id if you keep the same id consistent across browser and server.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Object
27 |
# File 'sig/oursprivacy_ingest/models/experiment_assignment_params.rbs', line 27
def initialize: (
|
Instance Attribute Details
#context ⇒ OursprivacyIngest::Models::ExperimentAssignmentParams::Context?
Optional page context for URL + query-param eligibility. Variant bucketing is
deterministic on visitor_id regardless of context.
37 |
# File 'lib/oursprivacy_ingest/models/experiment_assignment_params.rb', line 37 optional :context, -> { OursprivacyIngest::ExperimentAssignmentParams::Context }, nil?: true |
#experiment_key ⇒ String
The experiment's stable key. Surfaced in the dashboard under each experiment's setup tab.
15 |
# File 'lib/oursprivacy_ingest/models/experiment_assignment_params.rb', line 15 required :experiment_key, String |
#token ⇒ String
The experiment token (exp_*) for the experiment settings holding this
experiment. Available from the dashboard.
22 |
# File 'lib/oursprivacy_ingest/models/experiment_assignment_params.rb', line 22 required :token, String |
#track_impression ⇒ Boolean?
When true (default), an $experiment_impression event is enqueued and the
visitor's experiment_assignments map is updated. Set to false to read the
assignment without recording an impression — useful for in-test diagnostics.
45 |
# File 'lib/oursprivacy_ingest/models/experiment_assignment_params.rb', line 45 optional :track_impression, OursprivacyIngest::Internal::Type::Boolean, nil?: true |
#visitor_id ⇒ String
Stable identifier for the visitor — typically the Ours visitor id from your browser cookie, or your own server-side user id if you keep the same id consistent across browser and server.
30 |
# File 'lib/oursprivacy_ingest/models/experiment_assignment_params.rb', line 30 required :visitor_id, String |
Instance Method Details
#to_hash ⇒ {
36 |
# File 'sig/oursprivacy_ingest/models/experiment_assignment_params.rbs', line 36
def to_hash: -> {
|