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)
299 300 301 |
# File 'docs/3_Studio.rb', line 299 def relation_with_previous_condition @relation_with_previous_condition end |
#type ⇒ Symbol (readonly)
Type of the custom condition (:enabled_switch or :map_id)
293 294 295 |
# File 'docs/3_Studio.rb', line 293 def type @type end |
#value ⇒ Integer (readonly)
Value of the condition
296 297 298 |
# File 'docs/3_Studio.rb', line 296 def value @value end |
Instance Method Details
#evaluate
Evaluate the condition
306 307 |
# File 'docs/3_Studio.rb', line 306 def evaluate end |
#reduce_evaluate(previous) ⇒ Boolean
Evaluate the condition in a reduce context
303 304 |
# File 'docs/3_Studio.rb', line 303 def reduce_evaluate(previous) end |