Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 306 Bytes
class User
# Represents a participating user in the chat.
#
# id - A unique ID for the user.
# options - An optional Hash of key, value pairs for this user.
constructor: (@id, options = {}) ->
for k of (options or {})
@[k] = options[k]
@['name'] ||= @id
module.exports = User