Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.336 kB
Robot = require './robot'
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
Jump to Line
Something went wrong with that request. Please try again.