Class: Kameleoon::Targeting::Condition Private

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

CustomDatum

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#includeObject

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

#typeObject

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