class FReCon::Match
Public: The Match
model.
Public Instance Methods
participations()
click to toggle source
Public: Get this Match's Participations
# File lib/frecon/models/match.rb, line 28 def participations Participation.in id: records.map(&:participation_id) end
robots()
click to toggle source
Public: Get this Match's Participations' Robots
# File lib/frecon/models/match.rb, line 33 def robots Robot.in id: participations.map(&:robot_id) end
teams()
click to toggle source
Public: Get this Match's Participations' Robots' Teams
# File lib/frecon/models/match.rb, line 38 def teams Team.in id: robots.map(&:team_id) end