Class: FReCon::Robot
Overview
Public: The Robot model.
Instance Method Summary collapse
-
#competitions ⇒ Object
Public: Get this Robot’s Participations’ Competitions.
-
#matches ⇒ Object
Public: Get this Robot’s Participations’ Records’ Matches.
-
#records ⇒ Object
Public: Get this Robot’s Participations’ Records.
Methods inherited from Model
controller, descendants, inherited, #no_invalid_relations
Instance Method Details
#competitions ⇒ Object
Public: Get this Robot’s Participations’ Competitions
25 26 27 |
# File 'lib/frecon/models/robot.rb', line 25 def competitions Competition.in id: participations.map(&:competition_id) end |