StackExchange/Owner.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« StackExchange/Answers.pm ↑ Summary StackExchange/Role/Response.pm »
1 package Net::StackExchange::Owner;
2 4 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 $Net::StackExchange::Owner::VERSION = '0.102740';
4 }
5  
6 # ABSTRACT: Attributes to represent a user
7  
8 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 4 has [
12 qw{
13 user_id
14 reputation
15 }
16 ] => (
17 is => 'rw',
18 isa => 'Int',
19 required => 1,
20 );
21  
22 4 has 'user_type' => (
23 is => 'rw',
24 isa => enum( [ qw{ anonymous unregistered registered moderator } ] ),
25 required => 1,
26 );
27  
28 4 has [
29 qw{
30 display_name
31 email_hash
32 }
33 ] => (
34 is => 'rw',
35 isa => 'Str',
36 required => 1,
37 );
38  
39 4 __PACKAGE__->meta()->make_immutable();
40  
41 4 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 4 ▶no Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 4 1;
45  
46  
47  
48 =pod
49  
50 =head1 NAME
51  
52 Net::StackExchange::Owner - Attributes to represent a user
53  
54 =head1 VERSION
55  
56 version 0.102740
57  
58 =head1 SYNOPSIS
59  
60 =head1 ATTRIBUTES
61  
62 =head2 C<user_id>
63  
64 Returns id of the user.
65  
66 =head2 C<user_type>
67  
68 Returns type of the user.
69  
70 =head2 C<display_name>
71  
72 Returns displayable name of the user.
73  
74 =head2 C<reputation>
75  
76 Returns reputation of the user.
77  
78 =head2 C<email_hash>
79  
80 Returns email hash, suitable for fetching a gravatar.
81  
82 =head1 AUTHOR
83  
84 Alan Haggai Alavi <alanhaggai@alanhaggai.org>
85  
86 =head1 COPYRIGHT AND LICENSE
87  
88 This software is copyright (c) 2010 by Alan Haggai Alavi.
89  
90 This is free software; you can redistribute it and/or modify it under
91 the same terms as the Perl 5 programming language system itself.
92  
93 =cut
94  
95  
96 __END__
« StackExchange/Answers.pm ↑ Summary StackExchange/Role/Response.pm »