Class: Studio::Group::CustomCondition

Inherits:
Object
  • Object
show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing a custom group condition

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#relation_with_previous_conditionSymbol (readonly)

Relation of the condition (:AND, :OR)

Returns:

  • (Symbol)


278
279
280
# File 'docs/3_Studio.rb', line 278

def relation_with_previous_condition
  @relation_with_previous_condition
end

#typeSymbol (readonly)

Type of the custom condition (:enabled_switch or :map_id)

Returns:

  • (Symbol)


272
273
274
# File 'docs/3_Studio.rb', line 272

def type
  @type
end

#valueInteger (readonly)

Value of the condition

Returns:

  • (Integer)


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

Parameters:

  • previous (Boolean)

    result of the previous condition

Returns:

  • (Boolean)


282
283
# File 'docs/3_Studio.rb', line 282

def reduce_evaluate(previous)
end