class ReportsHelper::ReportMonth

Helper class for ReportYear and reporthelp_month_selection.

Attributes

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

Public Class Methods

new( year, month ) click to toggle source
# File app/helpers/reports_helper.rb, line 31
def initialize( year, month )
  @id    = "#{ year }_#{ month }"
  @start = "#{ month } (start of #{ Date::MONTHNAMES[ month ] } #{ year })"
  @end   = "#{ month } (end of #{ Date::MONTHNAMES[ month ] } #{ year })"
  @all   = "#{ month }, #{ Date::MONTHNAMES[ month ] } #{ year }"
end