| Class | Score |
| In: |
app/models/competitions/score.rb
|
| Parent: | ActiveRecord::Base |
Tie a Competition Result to its source Result from a SingleDayEvent, and holds the points earned for the Competition
Example: John Walrod places 3rd in the Mudslinger Singlespeed race. This earns him points for both the Singlespeed BAR and the Ironman:
Singlespeed BAR Score
Compare by points
# File app/models/competitions/score.rb, line 31
31: def <=>(other)
32: other.points <=> points
33: end
# File app/models/competitions/score.rb, line 22
22: def discipline
23: self.competition_result.race.discipline
24: end