Gandi/Operation.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 2 SCAR 11.5
CC
2
Cov
0%
info
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.1
1 #
2 # This file is part of Net-Gandi
3 #
4 # This software is copyright (c) 2012 by Natal Ngétal.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 package Net::Gandi::Operation;
10 {
11 $Net::Gandi::Operation::VERSION = '1.122180';
12 }
13  
14 # ABSTRACT: Operation interface
15  
16 use Moose;
17 use namespace::autoclean;
18  
19 use Net::Gandi::Types Client => { -as => 'Client_T' };
20  
21 use Carp;
22  
23  
24 has 'id' => ( is => 'rw', isa => 'Int' );
25  
26 has client => (
27 is => 'rw',
28 isa => Client_T,
29 required => 1,
30 );
31  
32  
33 sub info {
34 my ( $self ) = @_;
35  
36 carp 'Required parameter id is not defined' if ( ! $self->id );
37 return $self->client->api_call( 'operation.info', $self->id );
38 }
39  
40 no Moose;
41 __PACKAGE__->meta->make_immutable;
42  
43 1;
44  
45 __END__