Class: FReCon::Match
Overview
Public: The Match model.
Instance Method Summary collapse
-
#participations ⇒ Object
Public: Get this Match’s Participations.
-
#robots ⇒ Object
Public: Get this Match’s Participations’ Robots.
-
#teams ⇒ Object
Public: Get this Match’s Participations’ Robots’ Teams.
Methods inherited from Model
controller, descendants, inherited, #no_invalid_relations
Instance Method Details
#participations ⇒ Object
Public: Get this Match’s Participations
28 29 30 |
# File 'lib/frecon/models/match.rb', line 28 def participations Participation.in id: records.map(&:participation_id) end |