line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
28
|
use strict; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
150
|
|
2
|
6
|
|
|
6
|
|
32
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
225
|
|
3
|
|
|
|
|
|
|
package WebService::SendGrid::Newsletter::Schedule; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
36
|
use parent 'WebService::SendGrid::Newsletter::Base'; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
43
|
|
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
|
|
|
|
|
6
|
$self->{sgn} = $args{sgn}; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
52
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub add { |
21
|
4
|
|
|
4
|
1
|
42
|
my ($self, %args) = @_; |
22
|
|
|
|
|
|
|
|
23
|
4
|
|
|
|
|
24
|
$self->_check_required_args([ qw( name ) ], %args); |
24
|
|
|
|
|
|
|
|
25
|
2
|
|
|
|
|
12
|
$self->{sgn}->_send_request('schedule/add', %args); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub get { |
30
|
1
|
|
|
1
|
1
|
4
|
my ($self, %args) = @_; |
31
|
|
|
|
|
|
|
|
32
|
1
|
|
|
|
|
6
|
$self->_check_required_args([ qw( name ) ], %args); |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
|
|
6
|
$self->{sgn}->_send_request('schedule/get', %args); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub delete { |
39
|
2
|
|
|
2
|
1
|
6
|
my ($self, %args) = @_; |
40
|
|
|
|
|
|
|
|
41
|
2
|
|
|
|
|
10
|
$self->_check_required_args([ qw( name ) ], %args); |
42
|
|
|
|
|
|
|
|
43
|
1
|
|
|
|
|
6
|
$self->{sgn}->_send_request('schedule/delete', %args); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |