line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::HIBP::Paste; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
525
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.14'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
66
|
|
|
66
|
1
|
185
|
my ( $class, %parameters ) = @_; |
10
|
66
|
|
|
|
|
108
|
my $self = bless {}, $class; |
11
|
66
|
|
|
|
|
163
|
foreach my $key ( sort { $a cmp $b } keys %parameters ) { |
|
494
|
|
|
|
|
645
|
|
12
|
330
|
|
|
|
|
546
|
$self->{$key} = $parameters{$key}; |
13
|
|
|
|
|
|
|
} |
14
|
66
|
|
|
|
|
197
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub source { |
18
|
132
|
|
|
132
|
1
|
17989
|
my ($self) = @_; |
19
|
132
|
|
|
|
|
769
|
return $self->{Source}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub id { |
23
|
132
|
|
|
132
|
1
|
212
|
my ($self) = @_; |
24
|
132
|
|
|
|
|
434
|
return $self->{Id}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub title { |
28
|
132
|
|
|
132
|
1
|
383
|
my ($self) = @_; |
29
|
132
|
|
|
|
|
254
|
return $self->{Title}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub date { |
33
|
132
|
|
|
132
|
1
|
338
|
my ($self) = @_; |
34
|
132
|
|
|
|
|
251
|
return $self->{Date}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub email_count { |
38
|
132
|
|
|
132
|
1
|
216
|
my ($self) = @_; |
39
|
132
|
|
|
|
|
379
|
return $self->{EmailCount}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; # End of WebService::HIBP::Paste |
43
|
|
|
|
|
|
|
__END__ |