Class: SportsManager::NilTeam
Overview
Public: A representation of no Team used by next round matches that don’t have a winner set yet.
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#participants ⇒ Object
readonly
Returns the value of attribute participants.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(category:) ⇒ NilTeam
constructor
A new instance of NilTeam.
- #name ⇒ Object
Constructor Details
#initialize(category:) ⇒ NilTeam
Returns a new instance of NilTeam.
9 10 11 12 |
# File 'lib/sports_manager/nil_team.rb', line 9 def initialize(category:) @category = category @participants = [] end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
7 8 9 |
# File 'lib/sports_manager/nil_team.rb', line 7 def category @category end |
#participants ⇒ Object (readonly)
Returns the value of attribute participants.
7 8 9 |
# File 'lib/sports_manager/nil_team.rb', line 7 def participants @participants end |