Module: ActivePeriod::BelongsTo::Year

Included in:
Day, Month, Quarter, Week
Defined in:
lib/active_period/belongs_to/year.rb

Overview

Note:

when include this module provide access to the year of the

FreePeriod

Author:

  • Lucas Billaudot <billau_l@modulotech.fr>

Instance Method Summary collapse

Instance Method Details

#yearObject



7
8
9
# File 'lib/active_period/belongs_to/year.rb', line 7

def year
  ActivePeriod::Year.new(self.begin)
end