System::User
Represents a user on the host system.
NOTE: To use User, you must explicitly import it with require "system/user"
Users can be retrieved by either username or their user ID:
require "system/user"
System::User.find_by name: "root"
System::User.find_by id: "0"
Class methods
Returns the user associated with the given username.
Raises NotFoundError if no such user exists.
Returns the user associated with the given ID.
Raises NotFoundError if no such user exists.
Returns the user associated with the given username.
Returns nil if no such user exists.
Returns the user associated with the given ID.
Returns nil if no such user exists.
Instance methods
Returns true if this reference is the same as other. Invokes same?.
See Object#hash(hasher)
The user's real or full name.
May not be present on all platforms. Returns the same value as #username
if neither a real nor full name is available.