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_condition ⇒ Symbol (readonly)

Relation of the condition (:AND, :OR)

Returns:

  • (Symbol)


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)

Returns:

  • (Symbol)


293
294
295
# File 'docs/3_Studio.rb', line 293

def type
  @type
end

#value ⇒ Integer (readonly)

Value of the condition

Returns:

  • (Integer)


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

Parameters:

  • previous (Boolean) —

    result of the previous condition

Returns:

  • (Boolean)


303
304
# File 'docs/3_Studio.rb', line 303

def reduce_evaluate(previous)
end