summaryrefslogtreecommitdiff
path: root/lib/Net/Riak/Link.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-14 17:53:00 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-14 17:54:23 +0200
commitce47f3bb5e8c69a59b678c8ff8956d8a368bcb32 (patch)
treee1542c99df3edd44e9434f244318ff2d871df633 /lib/Net/Riak/Link.pm
parentis_alive moved to client (diff)
downloadnet-riak-ce47f3bb5e8c69a59b678c8ff8956d8a368bcb32.tar.gz
add mx::role::parameterized for replicas, bucket and client
Diffstat (limited to '')
-rw-r--r--lib/Net/Riak/Link.pm13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/Net/Riak/Link.pm b/lib/Net/Riak/Link.pm
index c5ed863..980aabb 100644
--- a/lib/Net/Riak/Link.pm
+++ b/lib/Net/Riak/Link.pm
@@ -4,16 +4,9 @@ package Net::Riak::Link;
use Moose;
-has client => (
- is => 'ro',
- isa => 'Net::Riak::Client',
- required => 0,
-);
-has bucket => (
- is => 'ro',
- isa => 'Net::Riak::Bucket',
- required => 1,
-);
+with 'Net::Riak::Role::Base' => {classes =>
+ [{name => 'client', required => 0}, {name => 'bucket', required => 1},]};
+
has key => (
is => 'rw',
isa => 'Str',