line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::UpdateDoc; |
2
|
1
|
|
|
1
|
|
103815
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
192189
|
|
|
1
|
|
|
|
|
9
|
|
3
|
1
|
|
|
1
|
|
311
|
use Catmandu::Util qw(:check :is); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
427
|
|
4
|
1
|
|
|
1
|
|
8
|
use Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
14
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.073"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with('Catmandu::AlephX::Response'); |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
0
|
|
sub op { 'update-doc' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub parse { |
13
|
0
|
|
|
0
|
0
|
|
my($class,$str_ref) = @_; |
14
|
0
|
|
|
|
|
|
my $xpath = xpath($str_ref); |
15
|
0
|
|
|
|
|
|
my $op = op(); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
__PACKAGE__->new( |
18
|
|
|
|
|
|
|
session_id => $xpath->findvalue("/$op/session-id"), |
19
|
|
|
|
|
|
|
errors => $class->parse_errors($xpath), |
20
|
|
|
|
|
|
|
content_ref => $str_ref |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |