Module: Kameleoon::Configuration::RuleType
- Defined in:
- lib/kameleoon/configuration/rule.rb
Overview
RuleType has a possible rule types
Constant Summary collapse
- UNKNOWN =
0
- EXPERIMENTATION =
1
- TARGETED_DELIVERY =
2
- EXPERIMENTATION_LITERAL =
'EXPERIMENTATION'
- TARGETED_DELIVERY_LITERAL =
'TARGETED_DELIVERY'
Class Method Summary collapse
Class Method Details
.from_literal(literal) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/kameleoon/configuration/rule.rb', line 18 def self.from_literal(literal) case literal when EXPERIMENTATION_LITERAL EXPERIMENTATION when TARGETED_DELIVERY_LITERAL TARGETED_DELIVERY else UNKNOWN end end |