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
26 27 28 |
# File 'lib/frecon/models/record.rb', line 26 def competition match.competition end |
#robot ⇒ Object
Public: Get this Record’s Participation’s Robot
31 32 33 |
# File 'lib/frecon/models/record.rb', line 31 def robot participation.robot end |
#team ⇒ Object
Public: Get this Record’s Participation’s Robot’s Team
36 37 38 |
# File 'lib/frecon/models/record.rb', line 36 def team participation.robot.team end |