Class: FReCon::Record

Inherits:
Model show all
Defined in:
lib/frecon/models/record.rb

Overview

Public: The Record model.

Instance Method Summary collapse

Methods inherited from Model

controller, descendants, inherited, #no_invalid_relations

Instance Method Details

#competitionObject

Public: Get this Record’s Match’s Competition



26
27
28
# File 'lib/frecon/models/record.rb', line 26

def competition
	match.competition
end

#robotObject

Public: Get this Record’s Participation’s Robot



31
32
33
# File 'lib/frecon/models/record.rb', line 31

def robot
	participation.robot
end

#teamObject

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