Class: C2eCore::Drops::PromoCodeProgressDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/promo_code_progress_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ PromoCodeProgressDrop

Returns a new instance of PromoCodeProgressDrop.

Instance Method Details

#applicable_countInteger

Returns - Number of items (pizzas / orders) customer already collected during this action. E.g.: 8.

Returns:

  • (Integer)
    • Number of items (pizzas / orders) customer already collected during this action. E.g.: 8

#company_branchCompanyBranchDrop

Returns - Company branch which given this promo code as drop object.

Returns:

#descriptionString

Returns - Description of rule this notification is associated.

Returns:

  • (String)
    • Description of rule this notification is associated.

#remaining_countInteger

Returns - Number of items (pizzas / orders) customer need to collect to claim promo code. E.g.: 2.

Returns:

  • (Integer)
    • Number of items (pizzas / orders) customer need to collect to claim promo code. E.g.: 2

#rules_urlString?

Returns - URL with rules of this action.

Returns:

  • (String, nil)
    • URL with rules of this action.

#unsubscribe_urlString

Returns - URL for unsubscribing from marketing actions.

Returns:

  • (String)
    • URL for unsubscribing from marketing actions.

#validityDateTime

Returns - Datetime object containing validity of information in this email. E.g.: “2020-11-16T11:38:56+01:00”.

Returns:

  • (DateTime)
    • Datetime object containing validity of information in this email.

    E.g.: “2020-11-16T11:38:56+01:00”.