class FReCon::Robot

Public: The Robot model.

Public Instance Methods

competitions() click to toggle source

Public: Get this Robot's Participations' Competitions

# File lib/frecon/models/robot.rb, line 25
def competitions
        Competition.in id: participations.map(&:competition_id)
end
matches() click to toggle source

Public: Get this Robot's Participations' Records' Matches

# File lib/frecon/models/robot.rb, line 35
def matches
        Match.in id: records.map(&:match_id).uniq
end
records() click to toggle source

Public: Get this Robot's Participations' Records

# File lib/frecon/models/robot.rb, line 30
def records
        Record.in participation_id: participations.map(&:id)
end