Class: C2eCore::Drops::CreditsExpiringSoonDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(wallet_activity) ⇒ CreditsExpiringSoonDrop

Returns a new instance of CreditsExpiringSoonDrop.

Instance Method Details

#cash_payment_decimalsInteger

Returns - The number of decimal places the ‘remaining_amount` should be rounded to.

Returns:

  • (Integer)
    • The number of decimal places the ‘remaining_amount` should be rounded to.

#expires_atDateTime

Returns - Datetime object containing the expiration time, e.g.: “2020-11-16T23:59:59+01:00”.

Returns:

  • (DateTime)
    • Datetime object containing the expiration time, e.g.: “2020-11-16T23:59:59+01:00”.

#formatted_remaining_amountString

Returns - Formatted value of ‘remaining_amount`.

Returns:

  • (String)
    • Formatted value of ‘remaining_amount`.

#remaining_amountFloat

Returns - Amount that will expire.

Returns:

  • (Float)
    • Amount that will expire.