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
27 28 29 |
# File 'lib/frecon/models/match.rb', line 27 def participations Participation.in id: records.map(&:participation_id) end |