line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
29
|
use strict; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
145
|
|
2
|
6
|
|
|
6
|
|
29
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
201
|
|
3
|
|
|
|
|
|
|
package WebService::SendGrid::Newsletter::Categories; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
29
|
use parent 'WebService::SendGrid::Newsletter::Base'; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
28
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
1
|
|
|
1
|
1
|
4
|
my ($class, %args) = @_; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
2
|
my $self = {}; |
12
|
1
|
|
|
|
|
3
|
bless($self, $class); |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
8
|
$self->{sgn} = $args{sgn}; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
4
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub create { |
21
|
2
|
|
|
2
|
1
|
6
|
my ($self, %args) = @_; |
22
|
|
|
|
|
|
|
|
23
|
2
|
|
|
|
|
14
|
$self->_check_required_args([ qw( category ) ], %args); |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
|
|
6
|
return $self->{sgn}->_send_request('category/create', %args); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub add { |
30
|
2
|
|
|
2
|
1
|
7
|
my ($self, %args) = @_; |
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
12
|
$self->_check_required_args([ qw( category name ) ], %args); |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
|
|
7
|
return $self->{sgn}->_send_request('category/add', %args); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub list { |
39
|
1
|
|
|
1
|
1
|
3
|
my ($self, %args) = @_; |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
|
|
6
|
return $self->{sgn}->_send_request('category/list', %args); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub remove { |
46
|
2
|
|
|
2
|
1
|
6
|
my ($self, %args) = @_; |
47
|
|
|
|
|
|
|
|
48
|
2
|
|
|
|
|
12
|
$self->_check_required_args([ qw( name ) ], %args); |
49
|
|
|
|
|
|
|
|
50
|
1
|
|
|
|
|
6
|
return $self->{sgn}->_send_request('category/remove', %args); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |