line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::PivotalTracker::Me; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
5
|
use namespace::autoclean; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.12'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
467
|
use WebService::PivotalTracker::PropertyAttributes; |
|
1
|
|
|
|
|
29
|
|
|
1
|
|
|
|
|
50
|
|
10
|
|
|
|
|
|
|
use WebService::PivotalTracker::Types |
11
|
1
|
|
|
1
|
|
6
|
qw( ArrayRef Bool DateTimeObject NonEmptyStr PositiveInt ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
1204
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has( @{$_} ) for props_to_attributes( |
16
|
|
|
|
|
|
|
id => PositiveInt, |
17
|
|
|
|
|
|
|
name => NonEmptyStr, |
18
|
|
|
|
|
|
|
initials => NonEmptyStr, |
19
|
|
|
|
|
|
|
username => NonEmptyStr, |
20
|
|
|
|
|
|
|
time_zone => NonEmptyStr, |
21
|
|
|
|
|
|
|
api_token => NonEmptyStr, |
22
|
|
|
|
|
|
|
has_google_identity => Bool, |
23
|
|
|
|
|
|
|
email => NonEmptyStr, |
24
|
|
|
|
|
|
|
receives_in_app_notifications => Bool, |
25
|
|
|
|
|
|
|
created_at => { |
26
|
|
|
|
|
|
|
type => DateTimeObject, |
27
|
|
|
|
|
|
|
inflator => '_inflate_iso8601_datetime', |
28
|
|
|
|
|
|
|
}, |
29
|
|
|
|
|
|
|
updated_at => { |
30
|
|
|
|
|
|
|
type => DateTimeObject, |
31
|
|
|
|
|
|
|
inflator => '_inflate_iso8601_datetime', |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
kind => NonEmptyStr, |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
with 'WebService::PivotalTracker::Entity'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) |
39
|
|
|
|
|
|
|
sub _self_uri { |
40
|
0
|
|
|
0
|
|
|
die 'Me has no uri'; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
## use critic |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# ABSTRACT: The /me resource, an expanded Person |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=pod |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=encoding UTF-8 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 NAME |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
WebService::PivotalTracker::Me - The /me resource, an expanded Person |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 VERSION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
version 0.12 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 SYNOPSIS |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 DESCRIPTION |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This class represents the person to whom the token belongs. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=for Test::Synopsis my $pt; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
my $me = $pt->me; |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This class provides the following attribute accessor methods. Each one |
75
|
|
|
|
|
|
|
corresponds to a property defined by the L<PT REST API V5 me resource |
76
|
|
|
|
|
|
|
docs|https://www.pivotaltracker.com/help/api/rest/v5#me_resource>. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 id |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 name |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 initials |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 username |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 time_zone |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 api_token |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 has_google_identity |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 email |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 receives_in_app_notifications |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 created_at |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This will be returned as a L<DateTime> object. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 updated_at |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
This will be returned as a L<DateTime> object. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 kind |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 raw_content |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
The raw JSON used to create this object. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 SUPPORT |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Bugs may be submitted through L<https://github.com/maxmind/WebService-PivotalTracker/issues>. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 AUTHOR |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This software is Copyright (c) 2016 - 2020 by MaxMind, Inc. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
This is free software, licensed under: |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=cut |