line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package WWW::Kickstarter::Data::User; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
5
|
1
|
|
|
1
|
|
2
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
16
|
|
6
|
1
|
|
|
1
|
|
3
|
no autovivification; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
3
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
31
|
use WWW::Kickstarter::Data qw( ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
250
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our @ISA = 'WWW::Kickstarter::Data'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _new { |
16
|
0
|
0
|
|
0
|
|
|
my_croak(400, "Incorrect usage") if @_ < 3; |
17
|
0
|
|
|
|
|
|
my ($class, $ks, $data, %opts) = @_; |
18
|
|
|
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
if (my @unrecognized = keys(%opts)) { |
20
|
0
|
|
|
|
|
|
my_croak(400, "Unrecognized parameters @unrecognized"); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my $self = $class->SUPER::_new($ks, $data); |
24
|
0
|
0
|
|
|
|
|
$self->{location} = WWW::Kickstarter::Data::Location->_new($ks, $self->{location}) if exists($self->{location}); |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
return $self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub id { $_[0]{id} } |
31
|
0
|
|
|
0
|
1
|
|
sub slug { $_[0]{slug} } |
32
|
0
|
|
|
0
|
1
|
|
sub name { $_[0]{name} } |
33
|
0
|
|
|
0
|
1
|
|
sub location { $_[0]{location} } |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub refetch { my $self = shift; return $self->ks->user($self->id, @_); } |
|
0
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
|
sub projects_created { my $self = shift; return $self->ks->user_projects_created($self->id, @_); } |
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |