line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Travel::Routing::DE::EFA::Route::Message; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
61
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
43
|
|
5
|
2
|
|
|
2
|
|
31
|
use 5.010; |
|
2
|
|
|
|
|
8
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
30
|
use parent 'Class::Accessor'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
19
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '2.22'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Travel::Routing::DE::EFA::Route::Message->mk_ro_accessors( |
12
|
|
|
|
|
|
|
qw(is_detailed summary subject subtitle raw_content)); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
5
|
|
|
5
|
1
|
16
|
my ( $obj, %conf ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
5
|
|
|
|
|
11
|
my $ref = \%conf; |
18
|
|
|
|
|
|
|
|
19
|
5
|
50
|
|
|
|
16
|
if ( not defined $ref->{subject} ) { |
20
|
5
|
|
|
|
|
11
|
$ref->{subject} = $ref->{summary}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
5
|
50
|
|
|
|
13
|
if ( defined $ref->{raw_content} ) { |
24
|
0
|
|
|
|
|
0
|
$ref->{is_detailed} = 1; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
else { |
27
|
5
|
|
|
|
|
8
|
$ref->{is_detailed} = 0; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
5
|
|
|
|
|
30
|
return bless( $ref, $obj ); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub TO_JSON { |
34
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
return { %{$self} }; |
|
0
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |