class SciolyFF::Interpreter::Penalty
Models a team penalty for a Science Olympiad team at a tournament
Attributes
team[R]
Public Instance Methods
link_to_other_models(interpreter)
click to toggle source
Calls superclass method
SciolyFF::Interpreter::Model#link_to_other_models
# File lib/sciolyff/interpreter/penalty.rb, line 8 def link_to_other_models(interpreter) super @team = interpreter.teams.find { |t| t.number == @rep[:team] } end
points()
click to toggle source
# File lib/sciolyff/interpreter/penalty.rb, line 15 def points @rep[:points] end