| 1 | package Net::Riak::Link; | ||
| 2 | { | ||
| 3 | 21 | $Net::Riak::Link::VERSION = '0.1702'; | |
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: the riaklink object represents a link from one Riak object to another | ||
| 7 | |||
| 8 | 21 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 21 | with 'Net::Riak::Role::Base' => {classes => | |
| 11 | [{name => 'client', required => 0}, {name => 'bucket', required => 1},]}; | ||
| 12 | |||
| 13 | 21 | has key => ( | |
| 14 | is => 'rw', | ||
| 15 | isa => 'Str', | ||
| 16 | lazy => 1, | ||
| 17 | default => '_', | ||
| 18 | ); | ||
| 19 | has tag => ( | ||
| 20 | is => 'rw', | ||
| 21 | isa => 'Str', | ||
| 22 | lazy => 1, | ||
| 23 | 0 | ▶ | default => sub {(shift)->bucket->name} |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 24 | 21 | ); | |
| 25 | |||
| 26 | 21 | 1; | |
| 27 | |||
| 28 | __END__ | ||