NAME

Data::Riak::Result::WithLinks - Results with links

VERSION

version 2.0

ATTRIBUTES

This object's list of Data::Riak::Links.

METHODS

my $link = $obj->create_link(
    riaktag => 'buddy',
);

Create a new Data::Riak::Link for this object's key within its bucket.

This only instanciates a new link. It won't automatically be added to the object's list of links. Use "add_link" for that.

my $obj_with_links = $obj->add_link(
    $obj->create_link(riaktag => 'buddy'),
);

Returns a clone of the instance, with the new link added to its list of links.

AUTHORS

  • Andrew Nelson <anelson at cpan.org>

  • Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.