Class: Kameleoon::Targeting::VisitorCodeCondition Private

Inherits:
StringValueCondition show all
Defined in:
lib/kameleoon/targeting/conditions/visitor_code_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.

VisitorCodeCondition is a condition for checking of targeting by visitor code

Instance Attribute Summary

Attributes inherited from Condition

#id, #include, #type

Instance Method Summary collapse

Methods inherited from StringValueCondition

#check

Methods inherited from Condition

#check

Constructor Details

#initialize(json_condition) ⇒ VisitorCodeCondition

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 VisitorCodeCondition.



11
12
13
# File 'lib/kameleoon/targeting/conditions/visitor_code_condition.rb', line 11

def initialize(json_condition)
  super(json_condition, json_condition['visitorCode'])
end