Module: SBF::Client::Donation::PromoCode

Defined in:
lib/stbaldricks/entities/donation/promo_code.rb

Constant Summary collapse

HOLIDAY_GIVING =
'holiday_giving'
IN_PLAY =
'in_play'
MOTHERS_DAY =
'mothers_day'
PHINEAS =
'phineas'
SEPTEMBER =
'september'
IMPACT_DG =
'impact_dg'
GIVING_TUESDAY =
'giving_tuesday'
SURVIVOR =
'survivor'
SPONSORSHIP =
'sponsorship'
LAPSED_LOW =
'lapsed_low'
LAPSED_MID =
'lapsed_mid'
RMMEVENTS =
'rmmevents'
YEAR_END_DG =
'year_end_dg'
LAPSED_DG =
'lapsed_dg'
FB_FUNDRAISER =
'fb_fundraiser'
MOBILE_CAUSE =
'mobile_cause'
INTERNATIONAL =
'international'
ACS =
'acs'
HEAD_SHAVING =
'head_shaving'

Class Method Summary collapse

Class Method Details

.to_aObject



27
28
29
30
31
32
# File 'lib/stbaldricks/entities/donation/promo_code.rb', line 27

def self.to_a
  # Defining the array explicitly, in order rather than const_getting since some things in website-ruby depend on the order
  [HOLIDAY_GIVING, IN_PLAY, MOTHERS_DAY, PHINEAS, SEPTEMBER, IMPACT_DG,
   GIVING_TUESDAY, SURVIVOR, SPONSORSHIP, LAPSED_LOW, LAPSED_MID, RMMEVENTS, YEAR_END_DG, LAPSED_DG, FB_FUNDRAISER,
   MOBILE_CAUSE, INTERNATIONAL, ACS, HEAD_SHAVING]
end