Class: AbstractUser

Defined in: src/user/abstract.coffee

Overview

Convenience methods for working with users.

Direct Known Subclasses

AuthorizedUser, GuestUser

Instance Method Summary

Constructor Details

- (void) constructor()

Stub method -- an AbstractUser cannot be instantiated.

Instance Method Details

- (void) uncache(key)

Remove items cached under a given key

Parameters:

  • key (String) The key indexing the item to uncache

- (Object) assets()

Get assets available to the user, indexed by good. Assets should normally be retrieved via Inventory#get.

Returns:

  • (Object) — A promise, resolving to an object of form good: [assets]