File Coverage

blib/lib/Net/Async/Github/User.pm
Criterion Covered Total %
statement 18 68 26.4
branch 0 36 0.0
condition 0 6 0.0
subroutine 6 42 14.2
pod 36 36 100.0
total 60 188 31.9


line stmt bran cond sub pod time code
1             package Net::Async::Github::User;
2              
3 4     4   233812 use strict;
  4         25  
  4         167  
4 4     4   20 use warnings;
  4         10  
  4         381  
5              
6             our $VERSION = '0.013'; # VERSION
7              
8 4     4   26 use parent qw(Net::Async::Github::Common);
  4         10  
  4         31  
9              
10             =head1 NAME
11              
12             Net::Async::Github::User
13              
14             =head1 DESCRIPTION
15              
16             Autogenerated module.
17              
18             =cut
19              
20 4     4   1897 use URI::Template ();
  4         41277  
  4         149  
21 4     4   1454 use Time::Moment ();
  4         5111  
  4         122  
22 4     4   2144 use Net::Async::Github::Plan ();
  4         13  
  4         5938  
23              
24             =head1 METHODS
25              
26             =cut
27              
28             =head2 login
29              
30             Provides an accessor for C.
31              
32             =cut
33              
34             sub login {
35             shift->{login}
36 0     0 1   }
37              
38             =head2 id
39              
40             Provides an accessor for C.
41              
42             =cut
43              
44             sub id {
45             shift->{id}
46 0     0 1   }
47              
48             =head2 avatar_url
49              
50             Provides an accessor for C.
51              
52             =cut
53              
54             sub avatar_url {
55             $_[0]->{avatar_url} =
56             URI::Template->new($_[0]->{avatar_url})
57 0 0   0 1   unless ref $_[0]->{avatar_url};
58             shift->{avatar_url}
59 0           }
60              
61             =head2 gravatar_id
62              
63             Provides an accessor for C.
64              
65             =cut
66              
67             sub gravatar_id {
68             shift->{gravatar_id}
69 0     0 1   }
70              
71             =head2 url
72              
73             Provides an accessor for C.
74              
75             =cut
76              
77             sub url {
78             shift->{url}
79 0     0 1   }
80              
81             =head2 html_url
82              
83             Provides an accessor for C.
84              
85             =cut
86              
87             sub html_url {
88             $_[0]->{html_url} =
89             URI::Template->new($_[0]->{html_url})
90 0 0   0 1   unless ref $_[0]->{html_url};
91             shift->{html_url}
92 0           }
93              
94             =head2 followers_url
95              
96             Provides an accessor for C.
97              
98             =cut
99              
100             sub followers_url {
101             $_[0]->{followers_url} =
102             URI::Template->new($_[0]->{followers_url})
103 0 0   0 1   unless ref $_[0]->{followers_url};
104             shift->{followers_url}
105 0           }
106              
107             =head2 following_url
108              
109             Provides an accessor for C.
110              
111             =cut
112              
113             sub following_url {
114             $_[0]->{following_url} =
115             URI::Template->new($_[0]->{following_url})
116 0 0   0 1   unless ref $_[0]->{following_url};
117             shift->{following_url}
118 0           }
119              
120             =head2 gists_url
121              
122             Provides an accessor for C.
123              
124             =cut
125              
126             sub gists_url {
127             $_[0]->{gists_url} =
128             URI::Template->new($_[0]->{gists_url})
129 0 0   0 1   unless ref $_[0]->{gists_url};
130             shift->{gists_url}
131 0           }
132              
133             =head2 starred_url
134              
135             Provides an accessor for C.
136              
137             =cut
138              
139             sub starred_url {
140             $_[0]->{starred_url} =
141             URI::Template->new($_[0]->{starred_url})
142 0 0   0 1   unless ref $_[0]->{starred_url};
143             shift->{starred_url}
144 0           }
145              
146             =head2 subscriptions_url
147              
148             Provides an accessor for C.
149              
150             =cut
151              
152             sub subscriptions_url {
153             $_[0]->{subscriptions_url} =
154             URI::Template->new($_[0]->{subscriptions_url})
155 0 0   0 1   unless ref $_[0]->{subscriptions_url};
156             shift->{subscriptions_url}
157 0           }
158              
159             =head2 organizations_url
160              
161             Provides an accessor for C.
162              
163             =cut
164              
165             sub organizations_url {
166             $_[0]->{organizations_url} =
167             URI::Template->new($_[0]->{organizations_url})
168 0 0   0 1   unless ref $_[0]->{organizations_url};
169             shift->{organizations_url}
170 0           }
171              
172             =head2 repos_url
173              
174             Provides an accessor for C.
175              
176             =cut
177              
178             sub repos_url {
179             $_[0]->{repos_url} =
180             URI::Template->new($_[0]->{repos_url})
181 0 0   0 1   unless ref $_[0]->{repos_url};
182             shift->{repos_url}
183 0           }
184              
185             =head2 events_url
186              
187             Provides an accessor for C.
188              
189             =cut
190              
191             sub events_url {
192             $_[0]->{events_url} =
193             URI::Template->new($_[0]->{events_url})
194 0 0   0 1   unless ref $_[0]->{events_url};
195             shift->{events_url}
196 0           }
197              
198             =head2 received_events_url
199              
200             Provides an accessor for C.
201              
202             =cut
203              
204             sub received_events_url {
205             $_[0]->{received_events_url} =
206             URI::Template->new($_[0]->{received_events_url})
207 0 0   0 1   unless ref $_[0]->{received_events_url};
208             shift->{received_events_url}
209 0           }
210              
211             =head2 type
212              
213             Provides an accessor for C.
214              
215             =cut
216              
217             sub type {
218             shift->{type}
219 0     0 1   }
220              
221             =head2 site_admin
222              
223             Provides an accessor for C.
224              
225             =cut
226              
227             sub site_admin {
228             shift->{site_admin}
229 0 0   0 1   ? 1 : 0
230             }
231              
232             =head2 name
233              
234             Provides an accessor for C.
235              
236             =cut
237              
238             sub name {
239             shift->{name}
240 0     0 1   }
241              
242             =head2 company
243              
244             Provides an accessor for C.
245              
246             =cut
247              
248             sub company {
249             shift->{company}
250 0     0 1   }
251              
252             =head2 blog
253              
254             Provides an accessor for C.
255              
256             =cut
257              
258             sub blog {
259             shift->{blog}
260 0     0 1   }
261              
262             =head2 location
263              
264             Provides an accessor for C.
265              
266             =cut
267              
268             sub location {
269             shift->{location}
270 0     0 1   }
271              
272             =head2 email
273              
274             Provides an accessor for C.
275              
276             =cut
277              
278             sub email {
279             shift->{email}
280 0     0 1   }
281              
282             =head2 hireable
283              
284             Provides an accessor for C.
285              
286             =cut
287              
288             sub hireable {
289             shift->{hireable}
290 0 0   0 1   ? 1 : 0
291             }
292              
293             =head2 bio
294              
295             Provides an accessor for C.
296              
297             =cut
298              
299             sub bio {
300             shift->{bio}
301 0     0 1   }
302              
303             =head2 public_repos
304              
305             Provides an accessor for C.
306              
307             =cut
308              
309             sub public_repos {
310             shift->{public_repos}
311 0     0 1   }
312              
313             =head2 public_gists
314              
315             Provides an accessor for C.
316              
317             =cut
318              
319             sub public_gists {
320             shift->{public_gists}
321 0     0 1   }
322              
323             =head2 followers
324              
325             Provides an accessor for C.
326              
327             =cut
328              
329             sub followers {
330             shift->{followers}
331 0     0 1   }
332              
333             =head2 following
334              
335             Provides an accessor for C.
336              
337             =cut
338              
339             sub following {
340             shift->{following}
341 0     0 1   }
342              
343             =head2 created_at
344              
345             Provides an accessor for C.
346              
347             =cut
348              
349             sub created_at {
350             $_[0]->{created_at} =
351             (defined($_[0]->{created_at}) && length($_[0]->{created_at}) ? Time::Moment->from_string($_[0]->{created_at}) : undef)
352 0 0 0 0 1   unless ref $_[0]->{created_at};
    0          
353             shift->{created_at}
354 0           }
355              
356             =head2 updated_at
357              
358             Provides an accessor for C.
359              
360             =cut
361              
362             sub updated_at {
363             $_[0]->{updated_at} =
364             (defined($_[0]->{updated_at}) && length($_[0]->{updated_at}) ? Time::Moment->from_string($_[0]->{updated_at}) : undef)
365 0 0 0 0 1   unless ref $_[0]->{updated_at};
    0          
366             shift->{updated_at}
367 0           }
368              
369             =head2 total_private_repos
370              
371             Provides an accessor for C.
372              
373             =cut
374              
375             sub total_private_repos {
376             shift->{total_private_repos}
377 0     0 1   }
378              
379             =head2 owned_private_repos
380              
381             Provides an accessor for C.
382              
383             =cut
384              
385             sub owned_private_repos {
386             shift->{owned_private_repos}
387 0     0 1   }
388              
389             =head2 private_gists
390              
391             Provides an accessor for C.
392              
393             =cut
394              
395             sub private_gists {
396             shift->{private_gists}
397 0     0 1   }
398              
399             =head2 disk_usage
400              
401             Provides an accessor for C.
402              
403             =cut
404              
405             sub disk_usage {
406             shift->{disk_usage}
407 0     0 1   }
408              
409             =head2 collaborators
410              
411             Provides an accessor for C.
412              
413             =cut
414              
415             sub collaborators {
416             shift->{collaborators}
417 0     0 1   }
418              
419             =head2 plan
420              
421             Provides an accessor for C.
422              
423             =cut
424              
425             sub plan {
426             $_[0]->{plan} =
427             Net::Async::Github::Plan->new($_[0]->{plan})
428 0 0   0 1   unless ref $_[0]->{plan};
429             shift->{plan}
430 0           }
431              
432             1;
433