module ActivePeriod::BelongsTo::Year

@author Lucas Billaudot <billau_l@modulotech.fr> @note when include this module provide access to the year of the FreePeriod

Public Instance Methods

year() click to toggle source
# File lib/active_period/belongs_to/year.rb, line 7
def year
  ActivePeriod::Year.new(self.begin)
end