Class: Kameleoon::Targeting::ExclusiveExperimentCondition::TargetingData Private

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/targeting/conditions/exclusive_experiment_condition.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_experiment_id, variations, personalizations, visitor_visits = nil) ⇒ TargetingData

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TargetingData.

API:

  • private



70
71
72
73
74
75
# File 'lib/kameleoon/targeting/conditions/exclusive_experiment_condition.rb', line 70

def initialize(current_experiment_id, variations, personalizations, visitor_visits = nil)
  @current_experiment_id = current_experiment_id
  @variations = variations
  @personalizations = personalizations
  @visitor_visits = visitor_visits
end

Instance Attribute Details

#current_experiment_idObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



68
69
70
# File 'lib/kameleoon/targeting/conditions/exclusive_experiment_condition.rb', line 68

def current_experiment_id
  @current_experiment_id
end

#personalizationsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



68
69
70
# File 'lib/kameleoon/targeting/conditions/exclusive_experiment_condition.rb', line 68

def personalizations
  @personalizations
end

#variationsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



68
69
70
# File 'lib/kameleoon/targeting/conditions/exclusive_experiment_condition.rb', line 68

def variations
  @variations
end

#visitor_visitsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



68
69
70
# File 'lib/kameleoon/targeting/conditions/exclusive_experiment_condition.rb', line 68

def visitor_visits
  @visitor_visits
end