Class: KillerQueenSceneScoring::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/killer_queen_scene_scoring/config.rb

Overview

‘Config` holds the contents of the config file that is read from a attachment in a bracket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_obj) ⇒ Config

‘config_obj` is a hash that contains the data from the config file.



12
13
14
15
16
17
18
# File 'lib/killer_queen_scene_scoring/config.rb', line 12

def initialize(config_obj)
    @base_point_value = config_obj[:base_point_value]
    @next_bracket = config_obj[:next_bracket]
    @max_players_to_count = config_obj[:max_players_to_count]
    @match_values = config_obj[:match_values]
    @teams = config_obj[:teams]
end

Instance Attribute Details

#base_point_valueObject (readonly)

Returns the value of attribute base_point_value.



8
9
10
# File 'lib/killer_queen_scene_scoring/config.rb', line 8

def base_point_value
  @base_point_value
end

#match_valuesObject (readonly)

Returns the value of attribute match_values.



8
9
10
# File 'lib/killer_queen_scene_scoring/config.rb', line 8

def match_values
  @match_values
end

#max_players_to_countObject (readonly)

Returns the value of attribute max_players_to_count.



8
9
10
# File 'lib/killer_queen_scene_scoring/config.rb', line 8

def max_players_to_count
  @max_players_to_count
end

#next_bracketObject (readonly)

Returns the value of attribute next_bracket.



8
9
10
# File 'lib/killer_queen_scene_scoring/config.rb', line 8

def next_bracket
  @next_bracket
end

#teamsObject (readonly)

Returns the value of attribute teams.



8
9
10
# File 'lib/killer_queen_scene_scoring/config.rb', line 8

def teams
  @teams
end