Class: Kameleoon::Targeting::Condition Private
- Inherits:
-
Object
- Object
- Kameleoon::Targeting::Condition
- Defined in:
- lib/kameleoon/targeting/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
Instance Attribute Summary collapse
- #include ⇒ Object private
- #type ⇒ Object private
Instance Method Summary collapse
- #check(conditions) ⇒ Object private
-
#initialize(json_conditions) ⇒ Condition
constructor
private
A new instance of Condition.
Constructor Details
#initialize(json_conditions) ⇒ Condition
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 Condition.
7 8 9 |
# File 'lib/kameleoon/targeting/condition.rb', line 7 def initialize(json_conditions) raise "Abstract class cannot be instantiate" end |
Instance Attribute Details
#include ⇒ 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.
5 6 7 |
# File 'lib/kameleoon/targeting/condition.rb', line 5 def include @include end |
#type ⇒ 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.
5 6 7 |
# File 'lib/kameleoon/targeting/condition.rb', line 5 def type @type end |
Instance Method Details
#check(conditions) ⇒ 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.
11 12 13 |
# File 'lib/kameleoon/targeting/condition.rb', line 11 def check(conditions) raise "Todo: Implement check method in condition" end |