| 1 | # ABSTRACT: Type library for OpenSky::API | ||||||||||
| 2 | |||||||||||
| 3 | package OpenSky::API::Types; | ||||||||||
| 4 | 6 | our $VERSION = '0.005'; | |||||||||
| 5 | use Type::Library | ||||||||||
| 6 | 6 | ▶ | -base, | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | -declare => qw( | ||||||||||
| 8 | Longitude | ||||||||||
| 9 | Latitude | ||||||||||
| 10 | 6 | ); | |||||||||
| 11 | |||||||||||
| 12 | 6 | ▶ | use Type::Utils -all; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 6 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 6 | extends qw( | |||||||||
| 16 | Types::Standard | ||||||||||
| 17 | Types::Common::Numeric | ||||||||||
| 18 | Types::Common::String | ||||||||||
| 19 | ); | ||||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 0 | ▶ | declare Longitude, as Num, where { $_ >= -180 and $lon <= 180 }; | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
| |||||||||||
| 23 | 0 | ▶ | declare Latitude, as Num, where { $_ >= -90 and $lon <= 90 }; | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
| |||||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||