Class: KillerQueenSceneScoring::Config
- Inherits:
-
Object
- Object
- KillerQueenSceneScoring::Config
- 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
-
#base_point_value ⇒ Object
readonly
Returns the value of attribute base_point_value.
-
#match_values ⇒ Object
readonly
Returns the value of attribute match_values.
-
#max_players_to_count ⇒ Object
readonly
Returns the value of attribute max_players_to_count.
-
#next_bracket ⇒ Object
readonly
Returns the value of attribute next_bracket.
-
#teams ⇒ Object
readonly
Returns the value of attribute teams.
Instance Method Summary collapse
-
#initialize(config_obj) ⇒ Config
constructor
‘config_obj` is a hash that contains the data from the config file.
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_value ⇒ Object (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_values ⇒ Object (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_count ⇒ Object (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_bracket ⇒ Object (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 |
#teams ⇒ Object (readonly)
Returns the value of attribute teams.
8 9 10 |
# File 'lib/killer_queen_scene_scoring/config.rb', line 8 def teams @teams end |