File Coverage

blib/lib/Net/Async/Github/Repository.pm
Criterion Covered Total %
statement 18 131 13.7
branch 0 100 0.0
condition 0 9 0.0
subroutine 6 72 8.3
pod 66 66 100.0
total 90 378 23.8


line stmt bran cond sub pod time code
1             package Net::Async::Github::Repository;
2              
3 2     2   187688 use strict;
  2         4  
  2         101  
4 2     2   11 use warnings;
  2         3  
  2         194  
5              
6             our $VERSION = '0.013'; # VERSION
7              
8 2     2   11 use parent qw(Net::Async::Github::Common);
  2         4  
  2         13  
9              
10             =head1 NAME
11              
12             Net::Async::Github::Repository
13              
14             =head1 DESCRIPTION
15              
16             Autogenerated module.
17              
18             =cut
19              
20 2     2   586 use Net::Async::Github::User ();
  2         6  
  2         43  
21 2     2   10 use URI::Template ();
  2         31  
  2         40  
22 2     2   8 use Time::Moment ();
  2         4  
  2         8466  
23              
24             =head1 METHODS
25              
26             =cut
27              
28             =head2 id
29              
30             Provides an accessor for C.
31              
32             =cut
33              
34             sub id {
35             shift->{id}
36 0     0 1   }
37              
38             =head2 owner
39              
40             Provides an accessor for C.
41              
42             =cut
43              
44             sub owner {
45             $_[0]->{owner} =
46             Net::Async::Github::User->new($_[0]->{owner})
47 0 0   0 1   unless ref $_[0]->{owner};
48             shift->{owner}
49 0           }
50              
51             =head2 name
52              
53             Provides an accessor for C.
54              
55             =cut
56              
57             sub name {
58             shift->{name}
59 0     0 1   }
60              
61             =head2 full_name
62              
63             Provides an accessor for C.
64              
65             =cut
66              
67             sub full_name {
68             shift->{full_name}
69 0     0 1   }
70              
71             =head2 description
72              
73             Provides an accessor for C.
74              
75             =cut
76              
77             sub description {
78             shift->{description}
79 0     0 1   }
80              
81             =head2 private
82              
83             Provides an accessor for C.
84              
85             =cut
86              
87             sub private {
88             shift->{private}
89 0     0 1   }
90              
91             =head2 fork
92              
93             Provides an accessor for C.
94              
95             =cut
96              
97             sub fork {
98             shift->{fork}
99 0     0 1   }
100              
101             =head2 url
102              
103             Provides an accessor for C.
104              
105             =cut
106              
107             sub url {
108             $_[0]->{url} =
109             URI::Template->new($_[0]->{url})
110 0 0   0 1   unless ref $_[0]->{url};
111             shift->{url}
112 0           }
113              
114             =head2 html_url
115              
116             Provides an accessor for C.
117              
118             =cut
119              
120             sub html_url {
121             $_[0]->{html_url} =
122             URI::Template->new($_[0]->{html_url})
123 0 0   0 1   unless ref $_[0]->{html_url};
124             shift->{html_url}
125 0           }
126              
127             =head2 archive_url
128              
129             Provides an accessor for C.
130              
131             =cut
132              
133             sub archive_url {
134             $_[0]->{archive_url} =
135             URI::Template->new($_[0]->{archive_url})
136 0 0   0 1   unless ref $_[0]->{archive_url};
137             shift->{archive_url}
138 0           }
139              
140             =head2 assignees_url
141              
142             Provides an accessor for C.
143              
144             =cut
145              
146             sub assignees_url {
147             $_[0]->{assignees_url} =
148             URI::Template->new($_[0]->{assignees_url})
149 0 0   0 1   unless ref $_[0]->{assignees_url};
150             shift->{assignees_url}
151 0           }
152              
153             =head2 blobs_url
154              
155             Provides an accessor for C.
156              
157             =cut
158              
159             sub blobs_url {
160             $_[0]->{blobs_url} =
161             URI::Template->new($_[0]->{blobs_url})
162 0 0   0 1   unless ref $_[0]->{blobs_url};
163             shift->{blobs_url}
164 0           }
165              
166             =head2 branches_url
167              
168             Provides an accessor for C.
169              
170             =cut
171              
172             sub branches_url {
173             $_[0]->{branches_url} =
174             URI::Template->new($_[0]->{branches_url})
175 0 0   0 1   unless ref $_[0]->{branches_url};
176             shift->{branches_url}
177 0           }
178              
179             =head2 clone_url
180              
181             Provides an accessor for C.
182              
183             =cut
184              
185             sub clone_url {
186             $_[0]->{clone_url} =
187             URI::Template->new($_[0]->{clone_url})
188 0 0   0 1   unless ref $_[0]->{clone_url};
189             shift->{clone_url}
190 0           }
191              
192             =head2 collaborators_url
193              
194             Provides an accessor for C.
195              
196             =cut
197              
198             sub collaborators_url {
199             $_[0]->{collaborators_url} =
200             URI::Template->new($_[0]->{collaborators_url})
201 0 0   0 1   unless ref $_[0]->{collaborators_url};
202             shift->{collaborators_url}
203 0           }
204              
205             =head2 comments_url
206              
207             Provides an accessor for C.
208              
209             =cut
210              
211             sub comments_url {
212             $_[0]->{comments_url} =
213             URI::Template->new($_[0]->{comments_url})
214 0 0   0 1   unless ref $_[0]->{comments_url};
215             shift->{comments_url}
216 0           }
217              
218             =head2 commits_url
219              
220             Provides an accessor for C.
221              
222             =cut
223              
224             sub commits_url {
225             $_[0]->{commits_url} =
226             URI::Template->new($_[0]->{commits_url})
227 0 0   0 1   unless ref $_[0]->{commits_url};
228             shift->{commits_url}
229 0           }
230              
231             =head2 compare_url
232              
233             Provides an accessor for C.
234              
235             =cut
236              
237             sub compare_url {
238             $_[0]->{compare_url} =
239             URI::Template->new($_[0]->{compare_url})
240 0 0   0 1   unless ref $_[0]->{compare_url};
241             shift->{compare_url}
242 0           }
243              
244             =head2 contents_url
245              
246             Provides an accessor for C.
247              
248             =cut
249              
250             sub contents_url {
251             $_[0]->{contents_url} =
252             URI::Template->new($_[0]->{contents_url})
253 0 0   0 1   unless ref $_[0]->{contents_url};
254             shift->{contents_url}
255 0           }
256              
257             =head2 contributors_url
258              
259             Provides an accessor for C.
260              
261             =cut
262              
263             sub contributors_url {
264             $_[0]->{contributors_url} =
265             URI::Template->new($_[0]->{contributors_url})
266 0 0   0 1   unless ref $_[0]->{contributors_url};
267             shift->{contributors_url}
268 0           }
269              
270             =head2 deployments_url
271              
272             Provides an accessor for C.
273              
274             =cut
275              
276             sub deployments_url {
277             $_[0]->{deployments_url} =
278             URI::Template->new($_[0]->{deployments_url})
279 0 0   0 1   unless ref $_[0]->{deployments_url};
280             shift->{deployments_url}
281 0           }
282              
283             =head2 downloads_url
284              
285             Provides an accessor for C.
286              
287             =cut
288              
289             sub downloads_url {
290             $_[0]->{downloads_url} =
291             URI::Template->new($_[0]->{downloads_url})
292 0 0   0 1   unless ref $_[0]->{downloads_url};
293             shift->{downloads_url}
294 0           }
295              
296             =head2 events_url
297              
298             Provides an accessor for C.
299              
300             =cut
301              
302             sub events_url {
303             $_[0]->{events_url} =
304             URI::Template->new($_[0]->{events_url})
305 0 0   0 1   unless ref $_[0]->{events_url};
306             shift->{events_url}
307 0           }
308              
309             =head2 forks_url
310              
311             Provides an accessor for C.
312              
313             =cut
314              
315             sub forks_url {
316             $_[0]->{forks_url} =
317             URI::Template->new($_[0]->{forks_url})
318 0 0   0 1   unless ref $_[0]->{forks_url};
319             shift->{forks_url}
320 0           }
321              
322             =head2 git_commits_url
323              
324             Provides an accessor for C.
325              
326             =cut
327              
328             sub git_commits_url {
329             $_[0]->{git_commits_url} =
330             URI::Template->new($_[0]->{git_commits_url})
331 0 0   0 1   unless ref $_[0]->{git_commits_url};
332             shift->{git_commits_url}
333 0           }
334              
335             =head2 git_refs_url
336              
337             Provides an accessor for C.
338              
339             =cut
340              
341             sub git_refs_url {
342             $_[0]->{git_refs_url} =
343             URI::Template->new($_[0]->{git_refs_url})
344 0 0   0 1   unless ref $_[0]->{git_refs_url};
345             shift->{git_refs_url}
346 0           }
347              
348             =head2 git_tags_url
349              
350             Provides an accessor for C.
351              
352             =cut
353              
354             sub git_tags_url {
355             $_[0]->{git_tags_url} =
356             URI::Template->new($_[0]->{git_tags_url})
357 0 0   0 1   unless ref $_[0]->{git_tags_url};
358             shift->{git_tags_url}
359 0           }
360              
361             =head2 git_url
362              
363             Provides an accessor for C.
364              
365             =cut
366              
367             sub git_url {
368             $_[0]->{git_url} =
369             URI::Template->new($_[0]->{git_url})
370 0 0   0 1   unless ref $_[0]->{git_url};
371             shift->{git_url}
372 0           }
373              
374             =head2 hooks_url
375              
376             Provides an accessor for C.
377              
378             =cut
379              
380             sub hooks_url {
381             $_[0]->{hooks_url} =
382             URI::Template->new($_[0]->{hooks_url})
383 0 0   0 1   unless ref $_[0]->{hooks_url};
384             shift->{hooks_url}
385 0           }
386              
387             =head2 issue_comment_url
388              
389             Provides an accessor for C.
390              
391             =cut
392              
393             sub issue_comment_url {
394             $_[0]->{issue_comment_url} =
395             URI::Template->new($_[0]->{issue_comment_url})
396 0 0   0 1   unless ref $_[0]->{issue_comment_url};
397             shift->{issue_comment_url}
398 0           }
399              
400             =head2 issue_events_url
401              
402             Provides an accessor for C.
403              
404             =cut
405              
406             sub issue_events_url {
407             $_[0]->{issue_events_url} =
408             URI::Template->new($_[0]->{issue_events_url})
409 0 0   0 1   unless ref $_[0]->{issue_events_url};
410             shift->{issue_events_url}
411 0           }
412              
413             =head2 issues_url
414              
415             Provides an accessor for C.
416              
417             =cut
418              
419             sub issues_url {
420             $_[0]->{issues_url} =
421             URI::Template->new($_[0]->{issues_url})
422 0 0   0 1   unless ref $_[0]->{issues_url};
423             shift->{issues_url}
424 0           }
425              
426             =head2 keys_url
427              
428             Provides an accessor for C.
429              
430             =cut
431              
432             sub keys_url {
433             $_[0]->{keys_url} =
434             URI::Template->new($_[0]->{keys_url})
435 0 0   0 1   unless ref $_[0]->{keys_url};
436             shift->{keys_url}
437 0           }
438              
439             =head2 labels_url
440              
441             Provides an accessor for C.
442              
443             =cut
444              
445             sub labels_url {
446             $_[0]->{labels_url} =
447             URI::Template->new($_[0]->{labels_url})
448 0 0   0 1   unless ref $_[0]->{labels_url};
449             shift->{labels_url}
450 0           }
451              
452             =head2 languages_url
453              
454             Provides an accessor for C.
455              
456             =cut
457              
458             sub languages_url {
459             $_[0]->{languages_url} =
460             URI::Template->new($_[0]->{languages_url})
461 0 0   0 1   unless ref $_[0]->{languages_url};
462             shift->{languages_url}
463 0           }
464              
465             =head2 merges_url
466              
467             Provides an accessor for C.
468              
469             =cut
470              
471             sub merges_url {
472             $_[0]->{merges_url} =
473             URI::Template->new($_[0]->{merges_url})
474 0 0   0 1   unless ref $_[0]->{merges_url};
475             shift->{merges_url}
476 0           }
477              
478             =head2 milestones_url
479              
480             Provides an accessor for C.
481              
482             =cut
483              
484             sub milestones_url {
485             $_[0]->{milestones_url} =
486             URI::Template->new($_[0]->{milestones_url})
487 0 0   0 1   unless ref $_[0]->{milestones_url};
488             shift->{milestones_url}
489 0           }
490              
491             =head2 mirror_url
492              
493             Provides an accessor for C.
494              
495             =cut
496              
497             sub mirror_url {
498             $_[0]->{mirror_url} =
499             URI::Template->new($_[0]->{mirror_url})
500 0 0   0 1   unless ref $_[0]->{mirror_url};
501             shift->{mirror_url}
502 0           }
503              
504             =head2 notifications_url
505              
506             Provides an accessor for C.
507              
508             =cut
509              
510             sub notifications_url {
511             $_[0]->{notifications_url} =
512             URI::Template->new($_[0]->{notifications_url})
513 0 0   0 1   unless ref $_[0]->{notifications_url};
514             shift->{notifications_url}
515 0           }
516              
517             =head2 pulls_url
518              
519             Provides an accessor for C.
520              
521             =cut
522              
523             sub pulls_url {
524             $_[0]->{pulls_url} =
525             URI::Template->new($_[0]->{pulls_url})
526 0 0   0 1   unless ref $_[0]->{pulls_url};
527             shift->{pulls_url}
528 0           }
529              
530             =head2 releases_url
531              
532             Provides an accessor for C.
533              
534             =cut
535              
536             sub releases_url {
537             $_[0]->{releases_url} =
538             URI::Template->new($_[0]->{releases_url})
539 0 0   0 1   unless ref $_[0]->{releases_url};
540             shift->{releases_url}
541 0           }
542              
543             =head2 ssh_url
544              
545             Provides an accessor for C.
546              
547             =cut
548              
549             sub ssh_url {
550             $_[0]->{ssh_url} =
551             URI::Template->new($_[0]->{ssh_url})
552 0 0   0 1   unless ref $_[0]->{ssh_url};
553             shift->{ssh_url}
554 0           }
555              
556             =head2 stargazers_url
557              
558             Provides an accessor for C.
559              
560             =cut
561              
562             sub stargazers_url {
563             $_[0]->{stargazers_url} =
564             URI::Template->new($_[0]->{stargazers_url})
565 0 0   0 1   unless ref $_[0]->{stargazers_url};
566             shift->{stargazers_url}
567 0           }
568              
569             =head2 statuses_url
570              
571             Provides an accessor for C.
572              
573             =cut
574              
575             sub statuses_url {
576             $_[0]->{statuses_url} =
577             URI::Template->new($_[0]->{statuses_url})
578 0 0   0 1   unless ref $_[0]->{statuses_url};
579             shift->{statuses_url}
580 0           }
581              
582             =head2 subscribers_url
583              
584             Provides an accessor for C.
585              
586             =cut
587              
588             sub subscribers_url {
589             $_[0]->{subscribers_url} =
590             URI::Template->new($_[0]->{subscribers_url})
591 0 0   0 1   unless ref $_[0]->{subscribers_url};
592             shift->{subscribers_url}
593 0           }
594              
595             =head2 subscription_url
596              
597             Provides an accessor for C.
598              
599             =cut
600              
601             sub subscription_url {
602             $_[0]->{subscription_url} =
603             URI::Template->new($_[0]->{subscription_url})
604 0 0   0 1   unless ref $_[0]->{subscription_url};
605             shift->{subscription_url}
606 0           }
607              
608             =head2 svn_url
609              
610             Provides an accessor for C.
611              
612             =cut
613              
614             sub svn_url {
615             $_[0]->{svn_url} =
616             URI::Template->new($_[0]->{svn_url})
617 0 0   0 1   unless ref $_[0]->{svn_url};
618             shift->{svn_url}
619 0           }
620              
621             =head2 tags_url
622              
623             Provides an accessor for C.
624              
625             =cut
626              
627             sub tags_url {
628             $_[0]->{tags_url} =
629             URI::Template->new($_[0]->{tags_url})
630 0 0   0 1   unless ref $_[0]->{tags_url};
631             shift->{tags_url}
632 0           }
633              
634             =head2 teams_url
635              
636             Provides an accessor for C.
637              
638             =cut
639              
640             sub teams_url {
641             $_[0]->{teams_url} =
642             URI::Template->new($_[0]->{teams_url})
643 0 0   0 1   unless ref $_[0]->{teams_url};
644             shift->{teams_url}
645 0           }
646              
647             =head2 trees_url
648              
649             Provides an accessor for C.
650              
651             =cut
652              
653             sub trees_url {
654             $_[0]->{trees_url} =
655             URI::Template->new($_[0]->{trees_url})
656 0 0   0 1   unless ref $_[0]->{trees_url};
657             shift->{trees_url}
658 0           }
659              
660             =head2 homepage
661              
662             Provides an accessor for C.
663              
664             =cut
665              
666             sub homepage {
667             shift->{homepage}
668 0     0 1   }
669              
670             =head2 language
671              
672             Provides an accessor for C.
673              
674             =cut
675              
676             sub language {
677             shift->{language}
678 0     0 1   }
679              
680             =head2 forks_count
681              
682             Provides an accessor for C.
683              
684             =cut
685              
686             sub forks_count {
687             shift->{forks_count}
688 0     0 1   }
689              
690             =head2 stargazers_count
691              
692             Provides an accessor for C.
693              
694             =cut
695              
696             sub stargazers_count {
697             shift->{stargazers_count}
698 0     0 1   }
699              
700             =head2 watchers_count
701              
702             Provides an accessor for C.
703              
704             =cut
705              
706             sub watchers_count {
707             shift->{watchers_count}
708 0     0 1   }
709              
710             =head2 size
711              
712             Provides an accessor for C.
713              
714             =cut
715              
716             sub size {
717             shift->{size}
718 0     0 1   }
719              
720             =head2 default_branch
721              
722             Provides an accessor for C.
723              
724             =cut
725              
726             sub default_branch {
727             shift->{default_branch}
728 0     0 1   }
729              
730             =head2 open_issues_count
731              
732             Provides an accessor for C.
733              
734             =cut
735              
736             sub open_issues_count {
737             shift->{open_issues_count}
738 0     0 1   }
739              
740             =head2 has_issues
741              
742             Provides an accessor for C.
743              
744             =cut
745              
746             sub has_issues {
747             shift->{has_issues}
748 0     0 1   }
749              
750             =head2 has_wiki
751              
752             Provides an accessor for C.
753              
754             =cut
755              
756             sub has_wiki {
757             shift->{has_wiki}
758 0     0 1   }
759              
760             =head2 has_pages
761              
762             Provides an accessor for C.
763              
764             =cut
765              
766             sub has_pages {
767             shift->{has_pages}
768 0     0 1   }
769              
770             =head2 has_downloads
771              
772             Provides an accessor for C.
773              
774             =cut
775              
776             sub has_downloads {
777             shift->{has_downloads}
778 0     0 1   }
779              
780             =head2 pushed_at
781              
782             Provides an accessor for C.
783              
784             =cut
785              
786             sub pushed_at {
787             $_[0]->{pushed_at} =
788             (defined($_[0]->{pushed_at}) && length($_[0]->{pushed_at}) ? Time::Moment->from_string($_[0]->{pushed_at}) : undef)
789 0 0 0 0 1   unless ref $_[0]->{pushed_at};
    0          
790             shift->{pushed_at}
791 0           }
792              
793             =head2 created_at
794              
795             Provides an accessor for C.
796              
797             =cut
798              
799             sub created_at {
800             $_[0]->{created_at} =
801             (defined($_[0]->{created_at}) && length($_[0]->{created_at}) ? Time::Moment->from_string($_[0]->{created_at}) : undef)
802 0 0 0 0 1   unless ref $_[0]->{created_at};
    0          
803             shift->{created_at}
804 0           }
805              
806             =head2 updated_at
807              
808             Provides an accessor for C.
809              
810             =cut
811              
812             sub updated_at {
813             $_[0]->{updated_at} =
814             (defined($_[0]->{updated_at}) && length($_[0]->{updated_at}) ? Time::Moment->from_string($_[0]->{updated_at}) : undef)
815 0 0 0 0 1   unless ref $_[0]->{updated_at};
    0          
816             shift->{updated_at}
817 0           }
818              
819             =head2 permissions
820              
821             Provides an accessor for C.
822              
823             =cut
824              
825             sub permissions {
826             shift->{permissions}
827 0     0 1   }
828              
829             1;
830