class Player
Model for a player
Overview¶ ↑
-
A player may be on a team
-
A player may be the first or second server in a match
-
A player may be the server of a game
Schema Information¶ ↑
Table name: players
id :integer not null, primary key name :string not null created_at :datetime not null updated_at :datetime not null
Public Instance Methods
singles_team()
click to toggle source
Find the singles team associated with this player
-
Returns : Team or nil
# File app/models/player.rb, line 23 def singles_team Team.find_by_doubles_and_first_player_id(false, self.id) end
singles_team!()
click to toggle source