EFA/Station.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod n/a totaltotal 71.4% 10 / 14 CC 1 SCAR 5.1
CC
1
Cov
82%
__ANON__
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.7
« EFA/HeaderFactory.pm ↑ Summary EFA/ConnectionsResult.pm »
1 package WWW::EFA::Station;
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::Station - Store a station with its location, departures and lines
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 Station object acquired through an EFA interface
21  
22 use WWW::EFA::Station;
23  
24 my $station = WWW::EFA::Station->new();
25 ...
26  
27 =head1 ATTRIBUTES
28  
29 # TODO: RCL 2011-11-06 Document attributes
30  
31 =cut
32  
33 2 has 'location' => (
34 is => 'ro',
35 isa => 'WWW::EFA::Location',
36 required => 1,
37 );
38  
39 has 'departures' => (
40 is => 'rw',
41 isa => 'ArrayRef',
42 0 ▶ default => sub{ [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
43 2 );
44  
45 has 'lines' => (
46 is => 'rw',
47 isa => 'ArrayRef',
48 0 ▶ default => sub{ [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
49 2 );
50  
51 2 1;
52  
53 =head1 COPYRIGHT
54  
55 Copyright 2011, Robin Clarke, Munich, Germany
56  
57 =head1 AUTHOR
58  
59 Robin Clarke <perl@robinclarke.net>
« EFA/HeaderFactory.pm ↑ Summary EFA/ConnectionsResult.pm »