blob: c7b82c703e33f2b94e6cd1b1c134c675e448c583 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package StarGit::Info;
use Moose;
has login => (
isa => 'Str',
required => 1,
is => 'ro',
);
with qw(
GitHub::Collector::Role::MongoDB
);
sub get {
my $self = shift;
my $profile = $self->db_profiles->find_one( { login => $self->login } );
return {
login => $self->login,
name => $profile->{name} || $self->login,
website => $profile->{blog},
gravatar => $profile->{gravatar_id},
indegree => $profile->{indegree},
country => $profile->{country} || "",
language => $profile->{language} || "",
};
}
1;
|