class Tyt::Season

Public Instance Methods

total_days() click to toggle source
# File lib/tyt/season.rb, line 10
def total_days
  days.count
end
total_runs() click to toggle source
# File lib/tyt/season.rb, line 6
def total_runs
  days.inject(0){|all_year,ski_day| all_year += ski_day.runs}
end
total_vertical_feet() click to toggle source
# File lib/tyt/season.rb, line 14
def total_vertical_feet
  days.inject(0){|all_year,ski_day| all_year += ski_day.vertical_feet}
end
total_vertical_meters() click to toggle source
# File lib/tyt/season.rb, line 18
def total_vertical_meters
  days.inject(0){|all_year,ski_day| all_year += ski_day.vertical_meters}
end