Class: GuestUser

Defined in: src/user/guest.coffee
Inherits: AbstractUser

Overview

Convenience methods for working with guest users.

Instance Method Summary

Inherited Method Summary

Methods inherited from AbstractUser

#constructor, #uncache, #assets

Constructor Details

- (void) constructor(client)

Create a new GuestUser.

Users should normally be created by Totem, and retrieved using Totem#user.

Parameters:

  • client (Object) A hapilib restClient

Instance Method Details

- (Object) goods()

Get goods available to the user.

Returns:

  • (Object) — A promise, resolving to an array of goods data