Plurk/User.pm

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« Plurk/Plurk.pm ↑ Summary Plurk/UserProfile.pm »
1 package Net::Plurk::User;
2 0 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=2.6
3  
4 =head1 NAME
5  
6 Net::Plurk::User
7  
8 =head1 SYNOPSIS
9  
10 Foobar
11  
12 =cut
13  
14 has 'id' => (is => 'rw', isa => 'Int');
15 has 'has_profile_image' => (is => 'rw', isa => 'Int');
16 has 'avatar' => (is => 'rw', isa => 'Maybe[Int]');
17 # not_saying, single, married, divorced, engaged, in_relationship, complicated, widowed, open_relationship
18 has 'relationship' => (is => 'rw', isa => 'Str');
19 has 'full_name' => (is => 'rw', isa => 'Str');
20 has 'nick_name' => (is => 'rw', isa => 'Str');
21 has 'display_name' => (is => 'rw', isa => 'Str', lazy_build => 1);
22 has 'location' => (is => 'rw', isa => 'Str');
23 has 'timezone' => (is => 'rw', isa => 'Any');
24 has 'date_of_birth' => (is => 'rw', isa => 'Maybe[Str]');
25 has 'karma' => (is => 'rw', isa => 'Num', default => 0);
26 has 'gender' => (is => 'rw', isa => 'Int');
27 has 'recruited' => (is => 'rw', isa => 'Int');
28 has 'is_premium' => (is => 'ro', isa => 'Maybe[Object]', default => 'JSON::false');
29 has 'email_confirmed' => (is => 'ro', isa => 'Maybe[Object]', default => 'JSON::false');
30  
31 sub _build_display_name {
32 my $self = shift;
33 $self->display_name($self->nick_name) unless $self->display_name;
34 }
35  
36 no Moose;
37 __PACKAGE__->meta->make_immutable;
38 1;
« Plurk/Plurk.pm ↑ Summary Plurk/UserProfile.pm »