API Docs for:
Show:

Hop.User Class

Defined in: lib/user.js:14
Module: User
Parent Module: Hop

Object for Hop.User

Item Index

Methods

Methods

exists

() String static

Defined in lib/user.js:56

Returns the id of the user from the HTTP request.

Returns:

String: name of user

hasRole

() String static

Defined in lib/user.js:45

Tests to see if this user has a role regarding a specific target

Returns:

String: name of user

id

() String static

Defined in lib/user.js:34

Returns the id of the user from the HTTP request.

Returns:

String: name of user

name

() String static

Defined in lib/user.js:23

Returns the name of the user from the HTTP request.

Returns:

String: name of user