Class: LoyaltyProgram::Template

Inherits:
Object
  • Object
show all
Defined in:
app/my_lib/loyalty_program/template.rb

Constant Summary collapse

TIER_QUALIFICATIONS =
{
  hunger: {
    total_reservations: LoyaltyLevel.hunger.tier_qualifications.total_reservations,
    total_spending: LoyaltyLevel.hunger.tier_qualifications.total_spending,
  },
  silver: {
    total_reservations: LoyaltyLevel.silver.tier_qualifications.total_reservations,
    total_spending: LoyaltyLevel.silver.tier_qualifications.total_spending,
  },
  gold: {
    total_reservations: LoyaltyLevel.gold.tier_qualifications.total_reservations,
    total_spending: LoyaltyLevel.gold.tier_qualifications.total_spending,
  },
  platinum: {
    total_reservations: LoyaltyLevel.platinum.tier_qualifications.total_reservations,
    total_spending: LoyaltyLevel.platinum.tier_qualifications.total_spending,
  },
}.freeze
REGAIN_QUALIFICATIONS =
{
  hunger: {
    total_reservations: LoyaltyLevel.hunger.regain_qualifications.total_reservations,
    total_spending: LoyaltyLevel.hunger.regain_qualifications.total_spending,
  },
  silver: {
    total_reservations: LoyaltyLevel.silver.regain_qualifications.total_reservations,
    total_spending: LoyaltyLevel.silver.regain_qualifications.total_spending,
  },
  gold: {
    total_reservations: LoyaltyLevel.gold.regain_qualifications.total_reservations,
    total_spending: LoyaltyLevel.gold.regain_qualifications.total_spending,
  },
  platinum: {
    total_reservations: LoyaltyLevel.platinum.regain_qualifications.total_reservations,
    total_spending: LoyaltyLevel.platinum.regain_qualifications.total_spending,
  },
}.freeze