| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package ArangoDB2::Edge; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 20 |  |  | 20 |  | 76 | use strict; | 
|  | 20 |  |  |  |  | 26 |  | 
|  | 20 |  |  |  |  | 584 |  | 
| 4 | 20 |  |  | 20 |  | 66 | use warnings; | 
|  | 20 |  |  |  |  | 23 |  | 
|  | 20 |  |  |  |  | 448 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 20 |  |  |  |  | 3399 | use base qw( | 
| 7 |  |  |  |  |  |  | ArangoDB2::Document | 
| 8 | 20 |  |  | 20 |  | 64 | ); | 
|  | 20 |  |  |  |  | 24 |  | 
| 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 |  |  |  |  |  |  | { | 
| 18 | 0 |  |  | 0 | 1 |  | 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 |  |  | 0 | 1 |  | sub from { shift->_get_set_id('from', @_) } | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | # to | 
| 31 |  |  |  |  |  |  | # | 
| 32 |  |  |  |  |  |  | # get/set to | 
| 33 | 0 |  |  | 0 | 1 |  | sub to { shift->_get_set_id('to', @_) } | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | # _class | 
| 36 |  |  |  |  |  |  | # | 
| 37 |  |  |  |  |  |  | # internal name for class | 
| 38 | 0 |  |  | 0 |  |  | sub _class { 'edge' } | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | # _register | 
| 41 |  |  |  |  |  |  | # | 
| 42 |  |  |  |  |  |  | # internal name for object index | 
| 43 | 0 |  |  | 0 |  |  | sub _register { 'edges' } | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | 1; | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | __END__ |