Class: Kameleoon::Targeting::NumberCondition Private
- Defined in:
- lib/kameleoon/targeting/conditions/number_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
PageViewNumberCondition, TimeElapsedSinceVisitCondition, VisitNumberTodayCondition, VisitNumberTotalCondition
Instance Attribute Summary
Attributes inherited from Condition
Instance Method Summary collapse
- #check(value) ⇒ Object private
-
#initialize(json_condition, value) ⇒ NumberCondition
constructor
private
A new instance of NumberCondition.
Constructor Details
#initialize(json_condition, value) ⇒ NumberCondition
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 NumberCondition.
11 12 13 14 15 |
# File 'lib/kameleoon/targeting/conditions/number_condition.rb', line 11 def initialize(json_condition, value) super(json_condition) @match_type = json_condition['matchType'] @condition_value = value end |
Instance Method Details
#check(value) ⇒ Object
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.
17 18 19 |
# File 'lib/kameleoon/targeting/conditions/number_condition.rb', line 17 def check(value) check_targeting(value) end |