class FReCon::Competition

Public: The Competition model.

Public Instance Methods

records() click to toggle source

Public: Get this Competition's Matches' Records

# File lib/frecon/models/competition.rb, line 26
def records
        Record.in match_id: matches.map(&:id)
end
robots() click to toggle source

Public: Get this Competition's Participations' Robots

# File lib/frecon/models/competition.rb, line 31
def robots
        Robot.in id: participations.map(&:robot_id)
end
teams() click to toggle source

Public: Get this Competition's Participations' Robots' Teams

# File lib/frecon/models/competition.rb, line 36
def teams
        Team.in id: robots.map(&:team_id)
end