Newsletter/Recipients.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 100% 35 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Newsletter/Identity.pm ↑ Summary Newsletter/Schedule.pm »
1 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package WebService::SendGrid::Newsletter::Recipients;
4  
5 8 ▶use parent 'WebService::SendGrid::Newsletter::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
9 2 my ($class, %args) = @_;
10
11 2 my $self = {};
12 2 bless($self, $class);
13
14 2 $self->{sgn} = $args{sgn};
15
16 2 return $self;
17 }
18  
19  
20 3 ▶sub add {
Subroutine add: called CC=1 SCAR=0.0
Pod documented
21 3 my ($self, %args) = @_;
22  
23 3 $self->_check_required_args([ qw( name list ) ], %args);
24  
25 2 $self->{sgn}->_send_request('recipients/add', %args);
26 }
27  
28  
29 2 ▶sub get {
Subroutine get: called CC=1 SCAR=0.0
Pod documented
30 2 my ($self, %args) = @_;
31  
32 2 $self->_check_required_args([ qw( name ) ], %args);
33
34 1 $self->{sgn}->_send_request('recipients/get', %args);
35 }
36  
37  
38 2 ▶sub delete {
Subroutine delete: called CC=1 SCAR=0.0
Pod documented
39 2 my ($self, %args) = @_;
40  
41 2 $self->_check_required_args([ qw( name list ) ], %args);
42
43 1 $self->{sgn}->_send_request('recipients/delete', %args);
44 }
45  
46 8 1;
47  
48 __END__
« Newsletter/Identity.pm ↑ Summary Newsletter/Schedule.pm »