Class: Studio::Group::CustomCondition
Overview
Data class describing a custom group condition
Instance Attribute Summary collapse
-
#relation_with_previous_condition ⇒ Symbol
readonly
Relation of the condition (:AND, :OR).
-
#type ⇒ Symbol
readonly
Type of the custom condition (:enabled_switch or :map_id).
-
#value ⇒ Integer
readonly
Value of the condition.
Instance Method Summary collapse
-
#evaluate
Evaluate the condition.
-
#reduce_evaluate(previous) ⇒ Boolean
Evaluate the condition in a reduce context.
Instance Attribute Details
#relation_with_previous_condition ⇒ Symbol (readonly)
Relation of the condition (:AND, :OR)
278 279 280 |
# File 'docs/3_Studio.rb', line 278 def relation_with_previous_condition @relation_with_previous_condition end |
#type ⇒ Symbol (readonly)
Type of the custom condition (:enabled_switch or :map_id)
272 273 274 |
# File 'docs/3_Studio.rb', line 272 def type @type end |
#value ⇒ Integer (readonly)
Value of the condition
275 276 277 |
# File 'docs/3_Studio.rb', line 275 def value @value end |
Instance Method Details
#evaluate
Evaluate the condition
285 286 |
# File 'docs/3_Studio.rb', line 285 def evaluate end |
#reduce_evaluate(previous) ⇒ Boolean
Evaluate the condition in a reduce context
282 283 |
# File 'docs/3_Studio.rb', line 282 def reduce_evaluate(previous) end |