EFA/Line.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« EFA/Departure.pm ↑ Summary EFA/Location.pm »
1 package WWW::EFA::Line;
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::Line - a transport line
8  
9 =head1 VERSION
10  
11 Version 0.01
12  
13 =cut
14  
15 2 our $VERSION = '0.01';
16  
17 =head1 SYNOPSIS
18  
19 Line object acquired through an EFA interface
20  
21 use WWW::EFA::Line;
22  
23 my $line = WWW::EFA::Line->new();
24 ...
25  
26  
27 =head1 ATTRIBUTES
28  
29 # TODO: RCL 2011-11-06 Document attributes
30  
31 =cut
32  
33 2 has 'id' => ( is => 'ro', isa => 'Str' );
34 2 has 'label' => ( is => 'ro', isa => 'Str' );
35 2 has 'colour' => ( is => 'ro', isa => 'Str' );
36 2 has 'destination' => ( is => 'ro', isa => 'WWW::EFA::Location' );
37 2 has 'line' => ( is => 'ro', isa => 'Str' );
38 2 has 'direction' => ( is => 'ro', isa => 'Str' ); # TODO: RCL 2011-11-09 Check for 'H' or 'R'
39 2 has 'route_description' => ( is => 'ro', isa => 'Str' );
40  
41 2 has 'mot' => ( is => 'ro', isa => 'Int' );
42 2 has 'realtime' => ( is => 'ro', isa => 'Bool' );
43 2 has 'number' => ( is => 'ro', isa => 'Str' );
44 2 has 'symbol' => ( is => 'ro', isa => 'Str' );
45 2 has 'code' => ( is => 'ro', isa => 'Str' );
46  
47 2 1;
48  
49 =head1 COPYRIGHT
50  
51 Copyright 2011, Robin Clarke, Munich, Germany
52  
53 =head1 AUTHOR
54  
55 Robin Clarke <perl@robinclarke.net>
56  
« EFA/Departure.pm ↑ Summary EFA/Location.pm »