Newsletter/Identity.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 100% 6 / 6 totaltotal 100% 44 / 44 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Newsletter/Categories.pm ↑ Summary Newsletter/Recipients.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::Identity;
4  
5 8 ▶use parent 'WebService::SendGrid::Newsletter::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
9 1 my ($class, %args) = @_;
10
11 1 my $self = {};
12 1 bless($self, $class);
13
14 1 $self->{sgn} = $args{sgn};
15
16 1 return $self;
17 }
18  
19  
20  
21 2 ▶sub add {
Subroutine add: called CC=1 SCAR=0.0
Pod documented
22 2 my ($self, %args) = @_;
23  
24 2 $self->_check_required_args([
25 qw( identity name email address city zip state country )
26 ], %args);
27  
28 1 $self->{sgn}->_send_request('identity/add', %args);
29 }
30  
31  
32  
33 1 ▶sub edit {
Subroutine edit: called CC=1 SCAR=0.0
Pod documented
34 1 my ($self, %args) = @_;
35  
36 1 $self->_check_required_args([ qw( identity email ) ], %args);
37  
38 1 $self->{sgn}->_send_request('identity/edit', %args);
39 }
40  
41  
42 2 ▶sub get {
Subroutine get: called CC=1 SCAR=0.0
Pod documented
43 2 my ($self, %args) = @_;
44  
45 2 $self->_check_required_args([ qw( identity ) ], %args);
46  
47 1 $self->{sgn}->_send_request('identity/get', %args);
48 }
49  
50  
51 2 ▶sub list {
Subroutine list: called CC=1 SCAR=0.0
Pod documented
52 2 my ($self, %args) = @_;
53  
54 2 $self->{sgn}->_send_request('identity/list', %args);
55 }
56  
57  
58 2 ▶sub delete {
Subroutine delete: called CC=1 SCAR=0.0
Pod documented
59 2 my ($self, %args) = @_;
60  
61 2 $self->_check_required_args([ qw( identity ) ], %args);
62  
63 1 $self->{sgn}->_send_request('identity/delete', %args);
64 }
65  
66 8 1;
67  
68 __END__
« Newsletter/Categories.pm ↑ Summary Newsletter/Recipients.pm »