Class: FReCon::Competition
- Defined in:
- lib/frecon/models/competition.rb
Overview
Public: The Competition model.
Instance Method Summary collapse
-
#records ⇒ Object
Public: Get this Competition’s Matches’ Records.
-
#robots ⇒ Object
Public: Get this Competition’s Participations’ Robots.
-
#teams ⇒ Object
Public: Get this Competition’s Participations’ Robots’ Teams.
Methods inherited from Model
controller, descendants, inherited, #no_invalid_relations
Instance Method Details
#records ⇒ Object
Public: Get this Competition’s Matches’ Records
26 27 28 |
# File 'lib/frecon/models/competition.rb', line 26 def records Record.in match_id: matches.map(&:id) end |