Class: Configs::Conditions

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

Overview

Configuration of contest conditions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Conditions

Returns a new instance of Conditions.



1615
1616
# File 'docs/3_Studio.rb', line 1615

def initialize
end

Instance Attribute Details

#beauty_index ⇒ Integer

Index of beauty value

Returns:

  • (Integer)


1602
1603
1604
# File 'docs/3_Studio.rb', line 1602

def beauty_index
  @beauty_index
end

#cleverness_index ⇒ Integer

Index of cleverness value

Returns:

  • (Integer)


1608
1609
1610
# File 'docs/3_Studio.rb', line 1608

def cleverness_index
  @cleverness_index
end

#coolness_index ⇒ Integer

Index of coolness value

Returns:

  • (Integer)


1599
1600
1601
# File 'docs/3_Studio.rb', line 1599

def coolness_index
  @coolness_index
end

#cuteness_index ⇒ Integer

Index of cuteness value

Returns:

  • (Integer)


1605
1606
1607
# File 'docs/3_Studio.rb', line 1605

def cuteness_index
  @cuteness_index
end

#max_condition_value ⇒ Integer

Maximum value of a condition

Returns:

  • (Integer)


1596
1597
1598
# File 'docs/3_Studio.rb', line 1596

def max_condition_value
  @max_condition_value
end

#sheen_index ⇒ Integer

Index of sheen value

Returns:

  • (Integer)


1614
1615
1616
# File 'docs/3_Studio.rb', line 1614

def sheen_index
  @sheen_index
end

#toughness_index ⇒ Integer

Index of toughness value

Returns:

  • (Integer)


1611
1612
1613
# File 'docs/3_Studio.rb', line 1611

def toughness_index
  @toughness_index
end

Instance Method Details

#condition_index(condition) ⇒ Integer

Get the index of a condition

Parameters:

  • condition (Symbol) —

    condition to get the index of

Returns:

  • (Integer) —

    index of the condition



1620
1621
# File 'docs/3_Studio.rb', line 1620

def condition_index(condition)
end

#to_json

Convert the config to json



1623
1624
# File 'docs/3_Studio.rb', line 1623

def to_json(*)
end