| IM-Engine documentation | Contained in the IM-Engine distribution. |
IM::Engine::User - a user that we're IMing
The verbatim screenname (or nickname or jid or ...) of the user.
This method returns the name but with "arbitrary stuff" removed. This is more useful for storing the name in a database, or for comparing names.
While documenting this method it gave me a bad feeling, so it very well may go
away. :)
| IM-Engine documentation | Contained in the IM-Engine distribution. |
package IM::Engine::User; use Moose; use MooseX::StrictConstructor; use IM::Engine::ExtendsObject::User; with 'IM::Engine::PluggableConstructor' => { role_specifier => '+IM::Engine::ExtendsObject::User', }; has '+_trait_namespace' => (default => __PACKAGE__); has name => ( is => 'ro', isa => 'Str', required => 1, ); sub canonical_name { my $self = shift; return $self->name; } __PACKAGE__->meta->make_immutable; no Moose; 1; __END__