line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::CreateItem; |
2
|
1
|
|
|
1
|
|
103492
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
194420
|
|
|
1
|
|
|
|
|
8
|
|
3
|
1
|
|
|
1
|
|
343
|
use Catmandu::Util qw(:check :is); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
436
|
|
4
|
1
|
|
|
1
|
|
7
|
use Moo; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.072"; |
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; |