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'
FALL_IMPACT =
'fall_impact'
GIVING_TUESDAY =
'giving_tuesday'
SURVIVOR =
'survivor'

Class Method Summary collapse

Class Method Details

.to_aObject



16
17
18
19
# File 'lib/stbaldricks/entities/donation/promo_code.rb', line 16

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, FALL_IMPACT, GIVING_TUESDAY, SURVIVOR]
end