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

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_at ⇒ DateTime

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_amount ⇒ String

Returns - Formatted value of remaining_amount.

Returns:

  • (String) —
    • Formatted value of remaining_amount.

#remaining_amount ⇒ Float

Returns - Amount that will expire.

Returns:

  • (Float) —
    • Amount that will expire.