| 1 | package WebService::OpenSky::Response::Flights; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | # ABSTRACT: A class representing a flights response from the OpenSky Network API | ||||||||||||||
| 4 | |||||||||||||||
| 5 | 8 | ▶ | use WebService::OpenSky::Moose; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | 8 | ▶ | use WebService::OpenSky::Core::Flight; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | 8 | extends 'WebService::OpenSky::Response'; | |||||||||||||
| 8 | |||||||||||||||
| 9 | 8 | our $VERSION = '0.5'; | |||||||||||||
| 10 | |||||||||||||||
| 11 | 8 | ▶ | method _create_response_objects() { | ||||||||||||
|
Subroutine
_create_response_objects: called CC=3 SCAR=11.2
Branch: 2 branches
| |||||||||||||||
| 12 | 8 | return [ map { WebService::OpenSky::Core::Flight->new($_) } $self->raw_response->@* ]; | |||||||||||||
| 13 | 8 | } | |||||||||||||
| 14 | |||||||||||||||
| 15 | 4 | ▶ | method _empty_response() { | ||||||||||||
|
Subroutine
_empty_response: called CC=3 SCAR=11.3
Branch: 2 branches
| |||||||||||||||
| 16 | 4 | return []; | |||||||||||||
| 17 | } | ||||||||||||||
| 18 | |||||||||||||||
| 19 | __END__ | ||||||||||||||