Class: FReCon::Record
Overview
Public: The Record model.
Instance Method Summary collapse
-
#competition ⇒ Object
Public: Get this Record’s Match’s Competition.
-
#robot ⇒ Object
Public: Get this Record’s Participation’s Robot.
-
#team ⇒ Object
Public: Get this Record’s Participation’s Robot’s Team.
Methods inherited from Model
controller, descendants, inherited, #no_invalid_relations
Instance Method Details
#competition ⇒ Object
Public: Get this Record’s Match’s Competition
25 26 27 |
# File 'lib/frecon/models/record.rb', line 25 def competition match.competition end |
#robot ⇒ Object
Public: Get this Record’s Participation’s Robot
30 31 32 |
# File 'lib/frecon/models/record.rb', line 30 def robot participation.robot end |
#team ⇒ Object
Public: Get this Record’s Participation’s Robot’s Team
35 36 37 |
# File 'lib/frecon/models/record.rb', line 35 def team participation.robot.team end |