NAME

Net::FluidDB::HasObject - Role for resources that have an object

SYNOPSIS

$namespace->object_id;
$namespace->object;

$user->tag($tag, integer => 0);
$user->value($tag)

DESCRIPTION

Net::FluidDB::HasObject is a role consumed by Net::FluidDB::Tag, Net::FluidDB::Namespace, and Net::FluidDB::User. They have in common that FluidDB creates an object for them.

USAGE

Instance Methods

$resource->object_id

The UUID of the object FluidDB created for the resource.

$resource->object

The object FluidDB created for the resource. This attribute is lazy loaded.

$resource->tag($tag_or_tag_path, $value, %options)
$resource->value($tag_or_tag_path)

Convenience methods that proxy the call to the underlying object. See Net::FluidDB::Object.

AUTHOR

Xavier Noria (FXN), <fxn@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2011 Xavier Noria

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.