Skip to content

Instantly share code, notes, and snippets.

View richkilmer's full-sized avatar

Richard Kilmer richkilmer

View GitHub Profile
def summer_monthly_usage
@summer_monthly_usage ||= monthly_usage_summary(rates.summer_months_nbr)
end
private
def monthly_usage_summary(months)
months.inject(0) { |sum, m| sum + monthly_usage[m - 1] }
end