NAME
Mango::User - A user object
SYNOPSIS
my $user = $provider->search({ username => 'claco' });
print $user->created;
$user->password('newpassword');
$user->update;
DESCRIPTION
Mango::User represents a user returned from the user provider.
METHODS
id
Returns id of the current user.
print $user->id;
created
Returns the date the user was created as a DateTime object.
print $user->created;
destroy
Deletes the current item from the provider.
updated
Returns the date the user was last updated as a DateTime object.
print $user->updated;
username
Gets/sets the username of the user.
print $user->username;
password
Gets/sets the password of the user.
print $user->password;
update
Saves any changes to the user back to the provider.
SEE ALSO
Mango::Object, Mango::Provider::Users
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/