line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::UpdateDoc; |
2
|
1
|
|
|
1
|
|
90872
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
154243
|
|
|
1
|
|
|
|
|
7
|
|
3
|
1
|
|
|
1
|
|
256
|
use Catmandu::Util qw(:check :is); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
369
|
|
4
|
1
|
|
|
1
|
|
6
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.071"; |
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; |