Class: C2eCore::Drops::CreditsWalletActivityDrop

Inherits:
BaseDrop
  • Object
show all
Includes:
ActionView::Helpers::NumberHelper
Defined in:
/build/app/mailers/c2e_core/drops/credits_wallet_activity_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(wallet_activity) ⇒ CreditsWalletActivityDrop

Returns a new instance of CreditsWalletActivityDrop.

Instance Method Details

#amount ⇒ Float

Returns - The wallet activity amount, e.g. 123.45.

Returns:

  • (Float) —
    • The wallet activity amount, e.g. 123.45.

#company_branch ⇒ CompanyBranchDrop

Returns - Returns company branch to which wallet activity belongs as drop object.

Returns:

  • (CompanyBranchDrop) —
    • Returns company branch to which wallet activity belongs as drop object.

#currency ⇒ CurrencyDrop

Returns - Returns currency to which wallet activity belongs as drop object.

Returns:

  • (CurrencyDrop) —
    • Returns currency to which wallet activity belongs as drop object.

#formatted_amount ⇒ String

Returns - The wallet activity amount formatted in its currency, e.g. "123,45 Kč".

Returns:

  • (String) —
    • The wallet activity amount formatted in its currency, e.g. "123,45 Kč".

#id ⇒ Integer

Returns - ID of wallet activity in database.

Returns:

  • (Integer) —
    • ID of wallet activity in database.

#user ⇒ UserDrop

Returns - Returns user to which wallet activity belongs as drop object.

Returns:

  • (UserDrop) —
    • Returns user to which wallet activity belongs as drop object.

#wallet ⇒ CreditsWalletDrop

Returns - Returns wallet to which wallet activity belongs as drop object.

Returns:

  • (CreditsWalletDrop) —
    • Returns wallet to which wallet activity belongs as drop object.