forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivity.rb
More file actions
34 lines (27 loc) · 1.02 KB
/
activity.rb
File metadata and controls
34 lines (27 loc) · 1.02 KB
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
# encoding: utf-8
module Github
class Activity < API
extend AutoloadHelper
autoload_all 'github_api/activity',
:Events => 'events',
:Notifications => 'notifications',
:Starring => 'starring',
:Watching => 'watching'
# Access to Activity::Events API
def events(options={}, &block)
@events ||= ApiFactory.new('Activity::Events', current_options.merge(options), &block)
end
# Access to Activity::Notifications API
def notifications(options={}, &block)
@notifications ||= ApiFactory.new('Activity::Notifications', current_options.merge(options), &block)
end
# Access to Activity::Starring API
def starring(options={}, &block)
@starring ||= ApiFactory.new('Activity::Starring', current_options.merge(options), &block)
end
# Access to Activity::Watching API
def watching(options={}, &block)
@watching ||= ApiFactory.new('Activity::Watching', current_options.merge(options), &block)
end
end # Activity
end # Github