line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Trip.pm - WWW::Velib::Trip |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Copyright (c) 2007 David Landgren |
4
|
|
|
|
|
|
|
# All rights reserved |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package WWW::Velib::Trip; |
7
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
153
|
|
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
16
|
use vars qw/$VERSION/; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
766
|
|
10
|
|
|
|
|
|
|
$VERSION = '0.03'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub make { |
13
|
62
|
|
|
62
|
1
|
72
|
my $class = shift; |
14
|
62
|
|
|
|
|
67
|
my $self = { |
15
|
|
|
|
|
|
|
date => $_[0], |
16
|
|
|
|
|
|
|
from => $_[1], |
17
|
|
|
|
|
|
|
to => $_[2], |
18
|
|
|
|
|
|
|
duration => $_[3] * 60 + $_[4], |
19
|
62
|
|
|
|
|
114
|
cost => do {$_[5] =~ tr/,/./; $_[5]} + 0, |
|
62
|
|
|
|
|
258
|
|
20
|
|
|
|
|
|
|
}; |
21
|
62
|
|
|
|
|
328
|
return bless $self, $class; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
2
|
|
|
2
|
1
|
1048
|
sub date { $_[0]->{date} } |
25
|
2
|
|
|
2
|
1
|
11
|
sub from { $_[0]->{from} } |
26
|
2
|
|
|
2
|
1
|
12
|
sub to { $_[0]->{to} } |
27
|
2
|
|
|
2
|
1
|
9
|
sub duration { $_[0]->{duration} } |
28
|
2
|
|
|
2
|
1
|
10
|
sub cost { $_[0]->{cost} } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
'The Lusty Decadent Delights of Imperial Pompeii'; |
31
|
|
|
|
|
|
|
__END__ |