The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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

Arguments: $username

Gets/sets the username of the user.

    print $user->username;

password

Arguments: $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/