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

#amount ⇒ Float

Returns - Amount.

Returns:

  • (Float) —
    • Amount.

#cash_payment_decimals ⇒ Integer

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

Returns - Formatted value of amount.

Returns:

  • (String) —
    • Formatted value of amount.