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_count ⇒ Integer

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_branch ⇒ CompanyBranchDrop

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

Returns:

#description ⇒ String

Returns - Description of rule this notification is associated.

Returns:

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

#remaining_count ⇒ Integer

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_url ⇒ String?

Returns - URL with rules of this action.

Returns:

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

#unsubscribe_url ⇒ String

Returns - URL for unsubscribing from marketing actions.

Returns:

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

#validity ⇒ DateTime

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".