app/reports/concerns/date_limitable.rb
##
# Returns a signatures report containing data for the week ending on the
# specified end date
#
# @param ending [#to_date]  End date for week
# @return [DateLimitable]
Returns a signatures report containing data for the week ending on the
specified end date
Returns a signatures report containing data for the week ending on the specified end date
def for_week(ending:)
      end_date   = ending.to_date
      begin_date = end_date - 6.days
      new_with_date_range(begin_date, end_date)
    end
def for_week ( ending : ) end_date = ending . to_date begin_date = end_date - 6 . days new_with_date_range ( begin_date , end_date ) end
Returns a signatures report containing data for the week ending on the
specified end date
Returns a signatures report containing data for the week ending on the specified end date
None
DateLimitable
ending
End date for week
End date for week