Class: Kameleoon::Targeting::VisitorScopeCondition Private
- Defined in:
- lib/kameleoon/targeting/conditions/visitor_scope_condition.rb
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.
Direct Known Subclasses
ConversionCondition, ExclusiveExperimentCondition, TargetExperimentCondition, TargetFeatureFlagCondition, TargetPersonalizationCondition
Constant Summary collapse
- MIN_VISITOR_VISIT_COUNT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
2- MAX_VISITOR_VISIT_COUNT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
25
Instance Attribute Summary
Attributes inherited from Condition
Instance Method Summary collapse
-
#initialize(json_condition, default_visit_scope) ⇒ VisitorScopeCondition
constructor
private
A new instance of VisitorScopeCondition.
Methods inherited from Condition
Constructor Details
#initialize(json_condition, default_visit_scope) ⇒ VisitorScopeCondition
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 VisitorScopeCondition.
18 19 20 21 22 |
# File 'lib/kameleoon/targeting/conditions/visitor_scope_condition.rb', line 18 def initialize(json_condition, default_visit_scope) super(json_condition) @visit_scope = parse_visit_scope(json_condition['visitScope'], default_visit_scope) @visit_count = parse_visit_count(json_condition['visitCount']) end |