line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::Renew; |
2
|
1
|
|
|
1
|
|
107173
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
201063
|
|
|
1
|
|
|
|
|
7
|
|
3
|
1
|
|
|
1
|
|
344
|
use Catmandu::Util qw(:check); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
261
|
|
4
|
1
|
|
|
1
|
|
8
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.073"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with('Catmandu::AlephX::Response'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has reply => ( |
11
|
|
|
|
|
|
|
is => 'ro' |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
has due_date => ( |
14
|
|
|
|
|
|
|
is => 'ro' |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
has due_hour => ( |
17
|
|
|
|
|
|
|
is => 'ro' |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
|
sub op { 'renew' } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub parse { |
23
|
0
|
|
|
0
|
0
|
|
my($class,$str_ref) = @_; |
24
|
0
|
|
|
|
|
|
my $xpath = xpath($str_ref); |
25
|
0
|
|
|
|
|
|
my $op = op(); |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
__PACKAGE__->new( |
28
|
|
|
|
|
|
|
session_id => $xpath->findvalue('/'.$op.'/session-id'), |
29
|
|
|
|
|
|
|
errors => $class->parse_errors($xpath), |
30
|
|
|
|
|
|
|
reply => $xpath->findvalue('/'.$op.'/reply'), |
31
|
|
|
|
|
|
|
due_date => $xpath->findvalue('/'.$op.'/due-date'), |
32
|
|
|
|
|
|
|
due_hour => $xpath->findvalue('/'.$op.'/due-hour'), |
33
|
|
|
|
|
|
|
content_ref => $str_ref |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |