line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Social::Mapper::Persona::Generic; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
54
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
382
|
|
4
|
9
|
|
|
9
|
|
51
|
use base qw(Net::Social::Mapper::Persona); |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
4547
|
|
5
|
9
|
|
|
9
|
|
7680
|
use Feed::Find; |
|
9
|
|
|
|
|
137238
|
|
|
9
|
|
|
|
|
1564
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Net::Social::Mapper::Persona::Generic - the persona for a generic service |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head2 SYNOPSIS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
See C |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _init { |
18
|
17
|
|
|
17
|
|
309
|
my $self = shift; |
19
|
17
|
|
|
|
|
110
|
my $sitemap = $self->mapper->sitemap; |
20
|
17
|
|
100
|
|
|
97
|
my $profile = $sitemap->profile($self->{service}, $self->{user}) || return; |
21
|
13
|
|
|
|
|
141
|
$self->{$_} = $profile->{$_} for keys %$profile; |
22
|
13
|
|
|
|
|
1018
|
return $self; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 feeds |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Get the feeds for this website. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
sub feeds { |
31
|
4
|
|
|
4
|
1
|
10
|
my $self = shift; |
32
|
4
|
50
|
|
|
|
19
|
$self->{feeds} = [ $self->mapper->_get_feeds($self->{homepage}) ] unless defined $self->{feeds}; |
33
|
4
|
|
|
|
|
34
|
return $self->SUPER::feeds; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|