Class: C2eCore::Drops::CreditsRewardDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(reward) ⇒ CreditsRewardDrop

Returns a new instance of CreditsRewardDrop.

Instance Method Details

#amountFloat

Returns - Amount.

Returns:

  • (Float)
    • Amount.

#cash_payment_decimalsInteger

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

Returns:

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

#formatted_amountString

Returns - Formatted value of ‘amount`.

Returns:

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