forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_data.rb
More file actions
45 lines (36 loc) · 958 Bytes
/
Copy pathgit_data.rb
File metadata and controls
45 lines (36 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# encoding: utf-8
module Github
class GitData < API
extend AutoloadHelper
autoload_all 'github_api/git_data',
:Blobs => 'blobs',
:Commits => 'commits',
:References => 'references',
:Tags => 'tags',
:Trees => 'trees'
# Creates new GitData API
def initialize(options = {})
super(options)
end
# Access to GitData::Blobs API
def blobs
@blobs ||= ApiFactory.new 'GitData::Blobs'
end
# Access to GitData::Commits API
def commits
@commits ||= ApiFactory.new 'GitData::Commits'
end
# Access to GitData::References API
def references
@references ||= ApiFactory.new 'GitData::References'
end
# Access to GitData::Tags API
def tags
@tags ||= ApiFactory.new 'GitData::Tags'
end
# Access to GitData::Tags API
def trees
@trees ||= ApiFactory.new 'GitData::Trees'
end
end # GitData
end # Github