Module: ActivePeriod::HasMany::Weeks

Includes:
ActivePeriod::HasMany
Included in:
FreePeriod, Month, Quarter, Year
Defined in:
lib/active_period/has_many/weeks.rb

Overview

Note:

when include this module provide itterable access to the weeks of

the FreePeriod

Author:

  • Lucas Billaudot <billau_l@modulotech.fr>

Instance Method Summary collapse

Instance Method Details

#weeksObject



9
10
11
# File 'lib/active_period/has_many/weeks.rb', line 9

def weeks
  @weeks ||= ActivePeriod::Collection.new(ActivePeriod::Week, self)
end