line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::CreateItem; |
2
|
1
|
|
|
1
|
|
104409
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
196986
|
|
|
1
|
|
|
|
|
8
|
|
3
|
1
|
|
|
1
|
|
311
|
use Catmandu::Util qw(:check :is); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
476
|
|
4
|
1
|
|
|
1
|
|
8
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.073"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with('Catmandu::AlephX::Response'); |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
0
|
|
sub op { 'create-item' } |
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; |