| 1 | # | ||
| 2 | # This file is part of GitHub-API | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2013 by Chris Weyl. | ||
| 5 | # | ||
| 6 | # This is free software, licensed under: | ||
| 7 | # | ||
| 8 | # The GNU Lesser General Public License, Version 2.1, February 1999 | ||
| 9 | # | ||
| 10 | package GitHub::API::User; | ||
| 11 | { | ||
| 12 | 3 | $GitHub::API::User::VERSION = '0.000000_03'; | |
| 13 | } | ||
| 14 | |||
| 15 | 3 | ▶ | use common::sense; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | # ABSTRACT: A user | ||
| 18 | |||
| 19 | 3 | ▶ | use aliased 'GitHub::API::Repo'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | # debugging... | ||
| 22 | #use Smart::Comments '###', '####'; | ||
| 23 | |||
| 24 | |||
| 25 | 0 | ▶ | sub repo { |
|
Subroutine
repo: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | 0 | my ($self, $repo) = @_; | |
| 27 | |||
| 28 | 0 | my %repo = (%$self, repo => $repo); | |
| 29 | 0 | $repo{url} = "/repos/$self->{user}/$repo"; | |
| 30 | |||
| 31 | #### %repo | ||
| 32 | 0 | return bless \%repo, Repo; | |
| 33 | } | ||
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | 3 | !!42; | |
| 38 | |||
| 39 | __END__ | ||