NAME

Mango::Profile - A user profile

SYNOPSIS

my $profile = $provider->search({ user => 23 });
print $user->created;
$user->first_name('Christopher');
$user->update;

DESCRIPTION

Mango::Profile represents a profile returned from the profile provider.

METHODS

id

Returns id of the current profile.

print $profile->id;

created

Returns the date the profile was created as a DateTime object.

print $profile->created;

destroy

Deletes the current item from the provider.

updated

Returns the date the profile was last updated as a DateTime object.

print $profile->updated;

first_name

Arguments: $first_name

Gets/sets the first name of the user.

print $profile->first_name;

last_name

Arguments: $last_name

Gets/sets the last name of the user.

print $profile->last_name;

update

Saves any changes to the profile back to the provider.

SEE ALSO

Mango::Object, Mango::Provider::Profiles

AUTHOR

Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/