line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Neo4j::Bolt::Node; |
2
|
|
|
|
|
|
|
# ABSTRACT: Representation of Neo4j Node |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
$Neo4j::Bolt::Node::VERSION = '0.4203'; |
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
49
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
163
|
|
7
|
6
|
|
|
6
|
|
24
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
157
|
|
8
|
|
|
|
|
|
|
|
9
|
6
|
|
|
6
|
|
1149
|
use parent 'Neo4j::Types::Node'; |
|
6
|
|
|
|
|
807
|
|
|
6
|
|
|
|
|
28
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub as_simple { |
12
|
2
|
|
|
2
|
1
|
109
|
my ($self) = @_; |
13
|
|
|
|
|
|
|
|
14
|
2
|
100
|
|
|
|
11
|
my %simple = defined $self->{properties} ? %{$self->{properties}} : (); |
|
1
|
|
|
|
|
4
|
|
15
|
2
|
|
|
|
|
5
|
$simple{_node} = $self->{id}; |
16
|
2
|
100
|
|
|
|
5
|
$simple{_labels} = defined $self->{labels} ? $self->{labels} : []; |
17
|
2
|
|
|
|
|
9
|
return \%simple; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |