line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::HIBP::Paste; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
47
|
|
4
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
407
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.12'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
64
|
|
|
64
|
1
|
136
|
my ( $class, %parameters ) = @_; |
10
|
64
|
|
|
|
|
84
|
my $self = bless {}, $class; |
11
|
64
|
|
|
|
|
151
|
foreach my $key ( sort { $a cmp $b } keys %parameters ) { |
|
475
|
|
|
|
|
520
|
|
12
|
320
|
|
|
|
|
449
|
$self->{$key} = $parameters{$key}; |
13
|
|
|
|
|
|
|
} |
14
|
64
|
|
|
|
|
149
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub source { |
18
|
128
|
|
|
128
|
1
|
16087
|
my ($self) = @_; |
19
|
128
|
|
|
|
|
370
|
return $self->{Source}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub id { |
23
|
128
|
|
|
128
|
1
|
196
|
my ($self) = @_; |
24
|
128
|
|
|
|
|
367
|
return $self->{Id}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub title { |
28
|
128
|
|
|
128
|
1
|
350
|
my ($self) = @_; |
29
|
128
|
|
|
|
|
345
|
return $self->{Title}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub date { |
33
|
128
|
|
|
128
|
1
|
300
|
my ($self) = @_; |
34
|
128
|
|
|
|
|
233
|
return $self->{Date}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub email_count { |
38
|
128
|
|
|
128
|
1
|
181
|
my ($self) = @_; |
39
|
128
|
|
|
|
|
846
|
return $self->{EmailCount}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; # End of WebService::HIBP::Paste |
43
|
|
|
|
|
|
|
__END__ |