1Net::GitHub::V2::ObjectU(s3e)r Contributed Perl DocumentaNteito:n:GitHub::V2::Object(3)
2
3
4
6 Net::GitHub::V2::Object - Git Object API
7
9 use Net::GitHub::V2::Object;
10
11 my $obj = Net::GitHub::V2::Object->new(
12 owner => 'fayland', repo => 'perl-net-github'
13 );
14
16 <http://develop.github.com/p/object.html>
17
19 tree
20 my $tree = $obj->tree( $tree_sha1 );
21
22 get the contents of a tree by tree sha
23
24 blob
25 my $blob = $obj->blob( $tree_sha1, 'lib/Net/GitHub.pm' );
26
27 get the data about a blob by tree sha and path
28
29 raw
30 my $raw = $obj->raw( $sha1 );
31
32 get the contents of a blob (can be tree, file or commits)
33
35 Fayland Lam, "<fayland at gmail.com>"
36
38 Copyright 2009 Fayland Lam, all rights reserved.
39
40 This program is free software; you can redistribute it and/or modify it
41 under the same terms as Perl itself.
42
43
44
45perl v5.12.3 2011-01-19 Net::GitHub::V2::Object(3)