Represents a team in a tournament Bracket
Methods
Attributes
| [R] | name | |
| [R] | seed | |
| [R] | short_name |
Public Class methods
[ show source ]
# File lib/tournament/team.rb, line 5 5: def initialize(name, short_name, seed) 6: @name = name 7: @short_name = short_name 8: @seed = seed 9: end
Public Instance methods
[ show source ]
# File lib/tournament/team.rb, line 11
11: def ==(other)
12: return false unless Tournament::Team === other
13: @name == other.name && @short_name == other.short_name && @seed == other.seed
14: end
[ show source ]
# File lib/tournament/team.rb, line 16
16: def eql?(other)
17: @name.eql?(other)
18: end