| 1 | package OpenSky::API::Core; | ||
| 2 | |||
| 3 | 5 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | use OpenSky::API::Types qw( | |
| 5 | ArrayRef | ||
| 6 | Defined | ||
| 7 | InstanceOf | ||
| 8 | Num | ||
| 9 | PositiveOrZeroInt | ||
| 10 | Str | ||
| 11 | Undef | ||
| 12 | 5 | ▶ | ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 5 | our $VERSION = '0.002'; | |
| 14 | 5 | ▶ | use experimental qw(signatures); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | ▶ | around 'BUILDARGS' => sub ( $orig, $class, $state ) { | |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 17 | 0 | my %value_for; | |
| 18 | 0 | @value_for{ $class->_get_params } = @$state; | |
| 19 | 0 | return $class->$orig(%value_for); | |
| 20 | 5 | }; | |
| 21 | |||
| 22 | ▶ | sub _get_params ($class) { | |
|
Subroutine
_get_params: not called CC=1 SCAR=6.9
| |||
| 23 | 0 | croak("You must override _get_params in $class"); | |
| 24 | } | ||
| 25 | |||
| 26 | 5 | 1; | |
| 27 | |||
| 28 | __END__ | ||
| 29 | |||
| 30 | =pod | ||
| 31 | |||
| 32 | =encoding UTF-8 | ||
| 33 | |||
| 34 | =head1 NAME | ||
| 35 | |||
| 36 | OpenSky::API::Core | ||
| 37 | |||
| 38 | =head1 VERSION | ||
| 39 | |||
| 40 | version 0.002 | ||
| 41 | |||
| 42 | =head1 AUTHOR | ||
| 43 | |||
| 44 | Curtis "Ovid" Poe <curtis.poe@gmail.com> | ||
| 45 | |||
| 46 | =head1 COPYRIGHT AND LICENSE | ||
| 47 | |||
| 48 | This software is Copyright (c) 2023 by Curtis "Ovid" Poe. | ||
| 49 | |||
| 50 | This is free software, licensed under: | ||
| 51 | |||
| 52 | The Artistic License 2.0 (GPL Compatible) | ||
| 53 | |||
| 54 | =cut | ||