class TimeBoss::Calendar::Support::MonthBasis
@abstract A MonthBasis
must define a `#start_date` and `#end_date` method. These methods should be calculated based on the incoming `#year` and `#month` values.
Attributes
month[R]
year[R]
Public Class Methods
new(year, month)
click to toggle source
# File lib/timeboss/calendar/support/month_basis.rb, line 10 def initialize(year, month) @year = year @month = month end
Public Instance Methods
to_range()
click to toggle source
# File lib/timeboss/calendar/support/month_basis.rb, line 15 def to_range @_to_range ||= start_date..end_date end