class ReportsHelper::ReportWeek

Helper class for ReportYear and reporthelp_week_selection.

Attributes

all[R]
end[R]
id[R]
start[R]

Public Class Methods

new( year, week ) click to toggle source
# File app/helpers/reports_helper.rb, line 18
def initialize( year, week )
  @id    = "#{ year }_#{ week }"
  @start = "#{ week } (starts Mon #{ Timesheet.date_for( year, week, TimesheetRow::FIRST_DAY ) })"
  @end   = "#{ week } (ends Sun #{ Timesheet.date_for( year, week, TimesheetRow::LAST_DAY ) })"
  @all   = "#{ week }, Mon #{ Timesheet.date_for( year, week, TimesheetRow::FIRST_DAY ) } - Sun #{ Timesheet.date_for( year, week, TimesheetRow::LAST_DAY ) }"
end