NAME

Net::GitHub::V1::Project - GitHub Project (Repository) (V1)

SYNOPSIS

use Net::GitHub::V1::Project;

# for http://github.com/fayland/perl-net-github/tree/master
my $prj = Net::GitHub::V1::Project->new( owner => 'fayland', name => 'perl-net-github' );
# or
my $prj2 = Net::GitHub::V1::Project->new( 'fayland', 'perl-net-github' );

# Net::GitHub::V1::Project::Info
print $prj->description;
print $prj->public_clone_url;

# Net::GitHub::V1::Project::Source
my @commits = $prj->commits;
foreach my $c ( @commits ) {
    my $commit = $prj->commit( $c->{id} );
}

# Net::GitHub::V1::Project::Downloads
my @downloads = $prj->downloads;

# Net::GitHub::V1::Project::Wiki
$prj->signin( 'login', 'password' );
$prj->wiki->new_page( 'PageTitle', "Page Content\n\nLine 2\n" );

DESCRIPTION

PARTS

Net::GitHub::V1::Project::Info

handled by Net::GitHub::V1::Project::Info

description
homepage
public_clone_url

Public Clone URL

your_clone_url

Your Clone URL

owner_user

instance of Net::GitHub::V1::User for $self->owner

info_from_owner_user

the repos HASHREF from $self->owner_user->repositories which matches the owner and name.

Net::GitHub::V1::Project::Source

handled by Net::GitHub::V1::Project::Source

commits
commit

Net::GitHub::V1::Project::Downloads

handled by Net::GitHub::V1::Project::Downloads

downloads

Net::GitHub::V1::Project::Wiki

instance of Net::GitHub::V1::Project::Wiki

AUTHOR

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE

Copyright 2009 Fayland Lam, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.