line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::Renew; |
2
|
1
|
|
|
1
|
|
79105
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
152817
|
|
|
1
|
|
|
|
|
5
|
|
3
|
1
|
|
|
1
|
|
277
|
use Catmandu::Util qw(:check); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
244
|
|
4
|
1
|
|
|
1
|
|
7
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.071"; |
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; |