Class: Kameleoon::Targeting::SegmentInfo Private
- Inherits:
-
Object
- Object
- Kameleoon::Targeting::SegmentInfo
- Defined in:
- lib/kameleoon/targeting/conditions/segment_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.
Instance Attribute Summary collapse
- #data_file ⇒ Object readonly private
Instance Method Summary collapse
- #condition_data(type) ⇒ Object private
-
#initialize(data_file, condition_data) ⇒ SegmentInfo
constructor
private
A new instance of SegmentInfo.
Constructor Details
#initialize(data_file, condition_data) ⇒ SegmentInfo
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 SegmentInfo.
32 33 34 35 |
# File 'lib/kameleoon/targeting/conditions/segment_condition.rb', line 32 def initialize(data_file, condition_data) @data_file = data_file @condition_data = condition_data end |
Instance Attribute Details
#data_file ⇒ Object (readonly)
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.
30 31 32 |
# File 'lib/kameleoon/targeting/conditions/segment_condition.rb', line 30 def data_file @data_file end |
Instance Method Details
#condition_data(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.
37 38 39 |
# File 'lib/kameleoon/targeting/conditions/segment_condition.rb', line 37 def condition_data(type) @condition_data.call(type) end |