Module: EventYearConcern

Extended by:
ActiveSupport::Concern
Included in:
SBF::Client::Event, SBF::Client::Fundraiser, SBF::Client::Participant, SBF::Client::Team
Defined in:
lib/stbaldricks/entities/concerns/event_year_concern.rb

Instance Method Summary collapse

Instance Method Details

#event_yearObject



6
7
8
9
10
# File 'lib/stbaldricks/entities/concerns/event_year_concern.rb', line 6

def event_year
  return year if is_a?(SBF::Client::Event)

  event.year
end