| 1 | # ABSTRACT: Flight class | ||
| 2 | |||
| 3 | package OpenSky::API::Core::Flight; | ||
| 4 | |||
| 5 | our $VERSION = '0.002'; | ||
| 6 | |||
| 7 | use Moose; | ||
| 8 | use experimental qw(signatures); | ||
| 9 | |||
| 10 | sub _get_params ($class) { | ||
| 11 | return qw( | ||
| 12 | icao24 | ||
| 13 | firstSeen | ||
| 14 | estDepartureAirport | ||
| 15 | lastSeen | ||
| 16 | estArrivalAirport | ||
| 17 | callsign | ||
| 18 | estDepartureAirportHorizDistance | ||
| 19 | estDepartureAirportVertDistance | ||
| 20 | estArrivalAirportHorizDistance | ||
| 21 | estArrivalAirportVertDistance | ||
| 22 | departureAirportCandidatesCount | ||
| 23 | arrivalAirportCandidatesCount | ||
| 24 | ); | ||
| 25 | } | ||
| 26 | has [ __PACKAGE__->_get_params() ] => ( is => 'ro', required => 1 ); | ||
| 27 | |||
| 28 | __PACKAGE__->meta->make_immutable; | ||
| 29 | |||
| 30 | __END__ | ||
| 31 | |||
| 32 | =pod | ||
| 33 | |||
| 34 | =encoding UTF-8 | ||
| 35 | |||
| 36 | =head1 NAME | ||
| 37 | |||
| 38 | OpenSky::API::Core::Flight - Flight class | ||
| 39 | |||
| 40 | =head1 VERSION | ||
| 41 | |||
| 42 | version 0.002 | ||
| 43 | |||
| 44 | =head1 DESCRIPTION | ||
| 45 | |||
| 46 | This class is not to be instantiated directly. It is a read-only class representing | ||
| 47 | L<OpenSky flight responses|https://openskynetwork.github.io/opensky-api/rest.html#flights-in-time-interval>. | ||
| 48 | |||
| 49 | All attributes are read-only. | ||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | Curtis "Ovid" Poe <curtis.poe@gmail.com> | ||
| 54 | |||
| 55 | =head1 COPYRIGHT AND LICENSE | ||
| 56 | |||
| 57 | This software is Copyright (c) 2023 by Curtis "Ovid" Poe. | ||
| 58 | |||
| 59 | This is free software, licensed under: | ||
| 60 | |||
| 61 | The Artistic License 2.0 (GPL Compatible) | ||
| 62 | |||
| 63 | =cut |