This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |