line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
31
|
use strict; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
140
|
|
2
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
207
|
|
3
|
|
|
|
|
|
|
package WebService::SendGrid::Newsletter::Identity; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
26
|
use parent 'WebService::SendGrid::Newsletter::Base'; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
28
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
1
|
|
|
1
|
1
|
3
|
my ($class, %args) = @_; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
2
|
my $self = {}; |
12
|
1
|
|
|
|
|
3
|
bless($self, $class); |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
5
|
$self->{sgn} = $args{sgn}; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
4
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub add { |
22
|
2
|
|
|
2
|
1
|
11
|
my ($self, %args) = @_; |
23
|
|
|
|
|
|
|
|
24
|
2
|
|
|
|
|
15
|
$self->_check_required_args([ |
25
|
|
|
|
|
|
|
qw( identity name email address city zip state country ) |
26
|
|
|
|
|
|
|
], %args); |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
8
|
$self->{sgn}->_send_request('identity/add', %args); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub edit { |
34
|
1
|
|
|
1
|
1
|
6
|
my ($self, %args) = @_; |
35
|
|
|
|
|
|
|
|
36
|
1
|
|
|
|
|
10
|
$self->_check_required_args([ qw( identity email ) ], %args); |
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
|
|
7
|
$self->{sgn}->_send_request('identity/edit', %args); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub get { |
43
|
2
|
|
|
2
|
1
|
6
|
my ($self, %args) = @_; |
44
|
|
|
|
|
|
|
|
45
|
2
|
|
|
|
|
12
|
$self->_check_required_args([ qw( identity ) ], %args); |
46
|
|
|
|
|
|
|
|
47
|
1
|
|
|
|
|
5
|
$self->{sgn}->_send_request('identity/get', %args); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub list { |
52
|
2
|
|
|
2
|
1
|
6
|
my ($self, %args) = @_; |
53
|
|
|
|
|
|
|
|
54
|
2
|
|
|
|
|
11
|
$self->{sgn}->_send_request('identity/list', %args); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub delete { |
59
|
2
|
|
|
2
|
1
|
6
|
my ($self, %args) = @_; |
60
|
|
|
|
|
|
|
|
61
|
2
|
|
|
|
|
12
|
$self->_check_required_args([ qw( identity ) ], %args); |
62
|
|
|
|
|
|
|
|
63
|
1
|
|
|
|
|
6
|
$self->{sgn}->_send_request('identity/delete', %args); |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
__END__ |