Class: C2eCore::Drops::CreditsWalletDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(wallet) ⇒ CreditsWalletDrop

Returns a new instance of CreditsWalletDrop.

Instance Method Details

#balance ⇒ Float

Returns - Wallet credit balance. E.g.: 123.45.

Returns:

  • (Float) —
    • Wallet credit balance. E.g.: 123.45.

#group ⇒ CreditsGroupDrop

Returns - Returns credit group to which wallet belongs as drop object.

Returns:

  • (CreditsGroupDrop) —
    • Returns credit group to which wallet belongs as drop object.

#nfc_id ⇒ String

Returns - The wallet's NFC ID, e.g. "049C64D2452B80".

Returns:

  • (String) —
    • The wallet's NFC ID, e.g. "049C64D2452B80".