Class: Match
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Match
- Defined in:
- lib/atpruby/match.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.select_compact ⇒ Object
19 20 21 22 |
# File 'lib/atpruby/match.rb', line 19 def self.select_compact select(:id, :tourney_id, :tourney_name, :surface, :tourney_level, :round, :minutes, :winner_id, :winner_name, :loser_id, :loser_name, :score) end |
Instance Method Details
#players ⇒ Object
15 16 17 |
# File 'lib/atpruby/match.rb', line 15 def players ::Player.where(player_id:[winner_id,loser_id]) end |