Class: C2eCore::Drops::CreditsExpiringSoonDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/credits_expiring_soon_drop.rb
Instance Method Summary collapse
-
#cash_payment_decimals ⇒ Integer
-
The number of decimal places the ‘remaining_amount` should be rounded to.
-
-
#expires_at ⇒ DateTime
-
Datetime object containing the expiration time, e.g.: “2020-11-16T23:59:59+01:00”.
-
-
#formatted_remaining_amount ⇒ String
-
Formatted value of ‘remaining_amount`.
-
-
#initialize(wallet_activity) ⇒ CreditsExpiringSoonDrop
constructor
A new instance of CreditsExpiringSoonDrop.
-
#remaining_amount ⇒ Float
-
Amount that will expire.
-
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.
#expires_at ⇒ DateTime
Returns - 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`.
#remaining_amount ⇒ Float
Returns - Amount that will expire.