| 1 | package ArangoDB2::Edge; | ||
| 2 | |||
| 3 | 22 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 22 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 22 | ▶ | use base qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | ArangoDB2::Document | ||
| 8 | 22 | ); | |
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | # create | ||
| 13 | # | ||
| 14 | # override ArangoDB2::Document create so that we can add from | ||
| 15 | # and to values to the request | ||
| 16 | sub create | ||
| 17 | 0 | ▶ | { |
|
Subroutine
create: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 18 | 0 | my($self, $data, $args) = @_; | |
| 19 | # process args | ||
| 20 | 0 | $args = $self->_build_args($args, ['from','to']); | |
| 21 | # call ArangoDB2::Document::create | ||
| 22 | 0 | return $self->SUPER::create($data, $args); | |
| 23 | } | ||
| 24 | |||
| 25 | # from | ||
| 26 | # | ||
| 27 | # get/set from | ||
| 28 | 0 | ▶ | sub from { shift->_get_set_id('from', @_) } |
|
Subroutine
from: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | # to | ||
| 31 | # | ||
| 32 | # get/set to | ||
| 33 | 0 | ▶ | sub to { shift->_get_set_id('to', @_) } |
|
Subroutine
to: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | # _class | ||
| 36 | # | ||
| 37 | # internal name for class | ||
| 38 | 0 | ▶ | sub _class { 'edge' } |
|
Subroutine
_class: not called CC=1 SCAR=6.9
| |||
| 39 | |||
| 40 | # _register | ||
| 41 | # | ||
| 42 | # internal name for object index | ||
| 43 | 0 | ▶ | sub _register { 'edges' } |
|
Subroutine
_register: not called CC=1 SCAR=6.9
| |||
| 44 | |||
| 45 | 22 | 1; | |
| 46 | |||
| 47 | __END__ | ||