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