| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  |  | 
| 2 |  |  |  |  |  |  | package NetApp::Snapmirror::Destination; | 
| 3 |  |  |  |  |  |  |  | 
| 4 |  |  |  |  |  |  | our $VERSION = '500.002'; | 
| 5 |  |  |  |  |  |  | $VERSION = eval $VERSION;  ##  no critic: StringyEval | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 1 |  |  | 1 |  | 5 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 29 |  | 
| 8 | 1 |  |  | 1 |  | 4 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 21 |  | 
| 9 |  |  |  |  |  |  |  | 
| 10 | 1 |  |  | 1 |  | 4 | use Class::Std; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 5 |  | 
| 11 | 1 |  |  | 1 |  | 94 | use Params::Validate qw( :all ); | 
|  | 1 |  |  |  |  | 8 |  | 
|  | 1 |  |  |  |  | 304 |  | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  | { | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | my %hostname_of	:ATTR( get => 'hostname' ); | 
| 16 |  |  |  |  |  |  | my %volume_of	:ATTR( get => 'volume' ); | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | sub BUILD { | 
| 19 |  |  |  |  |  |  |  | 
| 20 | 0 |  |  | 0 | 0 |  | my ($self,$ident,$args_ref) = @_; | 
| 21 |  |  |  |  |  |  |  | 
| 22 | 0 |  |  |  |  |  | my @args = %$args_ref; | 
| 23 |  |  |  |  |  |  |  | 
| 24 | 0 |  |  |  |  |  | my (%args) 	= validate( @args, { | 
| 25 |  |  |  |  |  |  | hostname	=> { type	=> SCALAR }, | 
| 26 |  |  |  |  |  |  | volume	=> { type	=> SCALAR }, | 
| 27 |  |  |  |  |  |  | }); | 
| 28 |  |  |  |  |  |  |  | 
| 29 | 0 |  |  |  |  |  | $hostname_of{$ident}	= $args{hostname}; | 
| 30 | 0 |  |  |  |  |  | $volume_of{$ident}	= $args{volume}; | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | } | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | } | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | 1; |