summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-05-11 09:22:53 +0200
committerfranck cuny <franck@lumberjaph.net>2010-05-11 09:22:53 +0200
commit6719d3da618c2e5b621f8bd4f5780b9de39714dd (patch)
treeea6bc20cdb6ca75602aebe4eda1532b08a809733
parentsome roles (diff)
downloadanyevent-riak-6719d3da618c2e5b621f8bd4f5780b9de39714dd.tar.gz
add handles to _client
-rw-r--r--lib/AnyEvent/Riak/Role/Client.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/AnyEvent/Riak/Role/Client.pm b/lib/AnyEvent/Riak/Role/Client.pm
new file mode 100644
index 0000000..0623e71
--- /dev/null
+++ b/lib/AnyEvent/Riak/Role/Client.pm
@@ -0,0 +1,12 @@
+package AnyEvent::Riak::Role::Client;
+
+use Moose::Role;
+
+has _client => (
+    is       => 'rw',
+    isa      => 'AnyEvent::Riak',
+    required => 1,
+    handles  => {host => 'host', client_id => 'client_id'}
+);
+
+1;