line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Travel::Status::DE::URA::Stop; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
17
|
use strict; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
117
|
|
4
|
5
|
|
|
5
|
|
16
|
use warnings; |
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
90
|
|
5
|
5
|
|
|
5
|
|
73
|
use 5.010; |
|
5
|
|
|
|
|
11
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
19
|
use parent 'Class::Accessor'; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
20
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '1.02'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Travel::Status::DE::URA::Stop->mk_ro_accessors(qw(datetime name)); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
10595
|
|
|
10595
|
1
|
458666
|
my ( $obj, %conf ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
10595
|
|
|
|
|
9230
|
my $ref = \%conf; |
17
|
|
|
|
|
|
|
|
18
|
10595
|
|
|
|
|
31283
|
return bless( $ref, $obj ); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub date { |
22
|
3
|
|
|
3
|
1
|
3
|
my ($self) = @_; |
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
|
|
9
|
return $self->{datetime}->strftime('%d.%m.%Y'); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub time { |
28
|
3
|
|
|
3
|
1
|
4
|
my ($self) = @_; |
29
|
|
|
|
|
|
|
|
30
|
3
|
|
|
|
|
15
|
return $self->{datetime}->strftime('%H:%M:%S'); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub TO_JSON { |
34
|
2
|
|
|
2
|
0
|
2
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
2
|
|
|
|
|
2
|
return { %{$self} }; |
|
2
|
|
|
|
|
13
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |