diff options
Diffstat (limited to 'lib/Narwhal/User.pm')
-rw-r--r-- | lib/Narwhal/User.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Narwhal/User.pm b/lib/Narwhal/User.pm index 6bb66c6..5ce4a63 100644 --- a/lib/Narwhal/User.pm +++ b/lib/Narwhal/User.pm @@ -1,12 +1,22 @@ package Narwhal::User; use Moose; +with 'KiokuDB::Role::ID'; + has id => ( is => 'ro', isa => 'Str', required => 1, ); +has is_anon => ( + is => 'ro', + isa => 'Str', + default => 0, +); + +sub kiokudb_object_id { 'user:' . shift->id } + __PACKAGE__->meta->make_immutable; no Moose; |