Xavier Noria > Net-Fluidinfo > Net::Fluidinfo::HasObject

Download:
Net-Fluidinfo-0.45.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

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

DESCRIPTION ^

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

USAGE ^

Instance Methods

$resource->object_id

The UUID of the object Fluidinfo created for the resource.

$resource->object

The object Fluidinfo 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::Fluidinfo::Object.

AUTHOR ^

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

COPYRIGHT AND LICENSE ^

Copyright (C) 2009-2012 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.

syntax highlighting: