Class: Kameleoon::Targeting::VisitorScopeCondition Private

Inherits:
Condition
  • Object
show all
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.

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

#id, #include, #type

Instance Method Summary collapse

Methods inherited from Condition

#check

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