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.4201'; |
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
45
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
194
|
|
7
|
6
|
|
|
6
|
|
33
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
201
|
|
8
|
|
|
|
|
|
|
|
9
|
6
|
|
|
6
|
|
1782
|
use parent 'Neo4j::Types::Node'; |
|
6
|
|
|
|
|
989
|
|
|
6
|
|
|
|
|
39
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub as_simple { |
12
|
2
|
|
|
2
|
1
|
132
|
my ($self) = @_; |
13
|
|
|
|
|
|
|
|
14
|
2
|
100
|
|
|
|
13
|
my %simple = defined $self->{properties} ? %{$self->{properties}} : (); |
|
1
|
|
|
|
|
5
|
|
15
|
2
|
|
|
|
|
6
|
$simple{_node} = $self->{id}; |
16
|
2
|
100
|
|
|
|
7
|
$simple{_labels} = defined $self->{labels} ? $self->{labels} : []; |
17
|
2
|
|
|
|
|
10
|
return \%simple; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |