| 1 | package WWW::EFA::Departure; | ||
| 2 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | with 'WWW::EFA::Roles::Printable'; # provides to_string | |
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | WWW::EFA::Departure - An instance of a Departure detail | ||
| 8 | |||
| 9 | =head1 VERSION | ||
| 10 | |||
| 11 | Version 0.01 | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | 2 | our $VERSION = '0.01'; | |
| 16 | |||
| 17 | |||
| 18 | =head1 SYNOPSIS | ||
| 19 | |||
| 20 | Departure object acquired through an EFA interface | ||
| 21 | |||
| 22 | use WWW::EFA::Departure; | ||
| 23 | |||
| 24 | my $departure = WWW::EFA::Departure->new(); | ||
| 25 | ... | ||
| 26 | |||
| 27 | =head1 ATTRIBUTES | ||
| 28 | |||
| 29 | # TODO: RCL 2011-11-06 Document attributes | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | 2 | has 'stop_id' => ( is => 'ro', isa => 'Int', ); | |
| 34 | 2 | has 'time' => ( is => 'ro', isa => 'Class::Date', ); | |
| 35 | 2 | has 'line_id' => ( is => 'ro', isa => 'Str', ); | |
| 36 | 2 | has 'area' => ( is => 'ro', isa => 'Int' ); | |
| 37 | 2 | has 'platform' => ( is => 'ro', isa => 'Str', ); | |
| 38 | 2 | has 'platform_name' => ( is => 'ro', isa => 'Str', ); | |
| 39 | 2 | has 'countdown' => ( is => 'ro', isa => 'Int', ); | |
| 40 | |||
| 41 | 2 | 1; | |
| 42 | |||
| 43 | =head1 COPYRIGHT | ||
| 44 | |||
| 45 | Copyright 2011, Robin Clarke, Munich, Germany | ||
| 46 | |||
| 47 | =head1 AUTHOR | ||
| 48 | |||
| 49 | Robin Clarke <perl@robinclarke.net> | ||