Class: Kameleoon::DataManager::ForcedVariation
- Inherits:
-
Object
- Object
- Kameleoon::DataManager::ForcedVariation
- Defined in:
- lib/kameleoon/data/manager/forced_variation.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#assignment_time ⇒ Object
readonly
Returns the value of attribute assignment_time.
-
#instance ⇒ Object
readonly
Returns the value of attribute instance.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#rule_type ⇒ Object
readonly
Returns the value of attribute rule_type.
-
#var_by_exp ⇒ Object
readonly
Returns the value of attribute var_by_exp.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data_type, rule, var_by_exp) ⇒ ForcedVariation
constructor
A new instance of ForcedVariation.
Constructor Details
#initialize(data_type, rule, var_by_exp) ⇒ ForcedVariation
Returns a new instance of ForcedVariation.
8 9 10 11 12 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 8 def initialize(data_type, rule, var_by_exp) @instance = data_type @rule = rule @var_by_exp = var_by_exp end |
Instance Attribute Details
#assignment_time ⇒ Object (readonly)
Returns the value of attribute assignment_time.
6 7 8 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 6 def assignment_time @assignment_time end |
#instance ⇒ Object (readonly)
Returns the value of attribute instance.
6 7 8 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 6 def instance @instance end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
6 7 8 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 6 def rule @rule end |
#rule_type ⇒ Object (readonly)
Returns the value of attribute rule_type.
6 7 8 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 6 def rule_type @rule_type end |
#var_by_exp ⇒ Object (readonly)
Returns the value of attribute var_by_exp.
6 7 8 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 6 def var_by_exp @var_by_exp end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/kameleoon/data/manager/forced_variation.rb', line 14 def ==(other) (@rule == other.rule) && (@var_by_exp == other.var_by_exp) end |