| 1 | |||
| 2 | package NetApp::Snapmirror::Destination; | ||
| 3 | |||
| 4 | 1 | our $VERSION = '500.002'; | |
| 5 | 1 | $VERSION = eval $VERSION; ## no critic: StringyEval | |
| 6 | |||
| 7 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | use Class::Std; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use Params::Validate qw( :all ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | { | ||
| 14 | |||
| 15 | 1 | my %hostname_of :ATTR( get => 'hostname' ); | |
| 16 | 1 | my %volume_of :ATTR( get => 'volume' ); | |
| 17 | |||
| 18 | 0 | ▶ | sub BUILD { |
|
Subroutine
BUILD: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | |||
| 20 | 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 | 1; | |