Class: Gitabu::Api::V3::Activity
- Inherits:
-
Object
- Object
- Gitabu::Api::V3::Activity
- Defined in:
- lib/gitabu/api/v3/activity.rb
Overview
Activity endpoints.
Class Method Summary collapse
- .check_if_a_repository_is_starred_by_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
- .delete_a_repository_subscription(owner: nil, repo: nil, options: nil) ⇒ Object
- .delete_a_thread_subscription(thread_id: nil, options: nil) ⇒ Object
- .get_a_repository_subscription(owner: nil, repo: nil, options: nil) ⇒ Object
- .get_a_thread(thread_id: nil, options: nil) ⇒ Object
- .get_a_thread_subscription_for_the_authenticated_user(thread_id: nil, options: nil) ⇒ Object
- .get_feeds(options: nil) ⇒ Object
- .list_events_for_the_authenticated_user(username: nil, options: nil) ⇒ Object
- .list_events_received_by_the_authenticated_user(username: nil, options: nil) ⇒ Object
- .list_notifications_for_the_authenticated_user(options: nil) ⇒ Object
- .list_organization_events_for_the_authenticated_user(username: nil, org: nil, options: nil) ⇒ Object
- .list_public_events(options: nil) ⇒ Object
- .list_public_events_for_a_network_of_repositories(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_public_events_for_a_user(username: nil, options: nil) ⇒ Object
- .list_public_events_received_by_a_user(username: nil, options: nil) ⇒ Object
- .list_public_organization_events(org: nil, options: nil) ⇒ Object
- .list_repositories_starred_by_a_user(username: nil, options: nil) ⇒ Object
- .list_repositories_starred_by_the_authenticated_user(options: nil) ⇒ Object
- .list_repositories_watched_by_a_user(username: nil, options: nil) ⇒ Object
- .list_repositories_watched_by_the_authenticated_user(options: nil) ⇒ Object
- .list_repository_events(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_repository_notifications_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_stargazers(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_watchers(owner: nil, repo: nil, options: nil) ⇒ Object
- .mark_a_thread_as_read(thread_id: nil, options: nil) ⇒ Object
- .mark_notifications_as_read(last_read_at: nil, read: nil, options: nil) ⇒ Object
- .mark_repository_notifications_as_read(owner: nil, repo: nil, last_read_at: nil, options: nil) ⇒ Object
- .set_a_repository_subscription(owner: nil, repo: nil, subscribed: nil, ignored: nil, options: nil) ⇒ Object
- .set_a_thread_subscription(thread_id: nil, ignored: nil, options: nil) ⇒ Object
- .star_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
- .unstar_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
Class Method Details
.check_if_a_repository_is_starred_by_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
122 123 124 |
# File 'lib/gitabu/api/v3/activity.rb', line 122 def self.check_if_a_repository_is_starred_by_the_authenticated_user(owner: nil, repo: nil, options: nil) new.check_if_a_repository_is_starred_by_the_authenticated_user(owner, repo, ) end |
.delete_a_repository_subscription(owner: nil, repo: nil, options: nil) ⇒ Object
150 151 152 |
# File 'lib/gitabu/api/v3/activity.rb', line 150 def self.delete_a_repository_subscription(owner: nil, repo: nil, options: nil) new.delete_a_repository_subscription(owner, repo, ) end |
.delete_a_thread_subscription(thread_id: nil, options: nil) ⇒ Object
102 103 104 |
# File 'lib/gitabu/api/v3/activity.rb', line 102 def self.delete_a_thread_subscription(thread_id: nil, options: nil) new.delete_a_thread_subscription(thread_id, ) end |
.get_a_repository_subscription(owner: nil, repo: nil, options: nil) ⇒ Object
142 143 144 |
# File 'lib/gitabu/api/v3/activity.rb', line 142 def self.get_a_repository_subscription(owner: nil, repo: nil, options: nil) new.get_a_repository_subscription(owner, repo, ) end |
.get_a_thread(thread_id: nil, options: nil) ⇒ Object
86 87 88 |
# File 'lib/gitabu/api/v3/activity.rb', line 86 def self.get_a_thread(thread_id: nil, options: nil) new.get_a_thread(thread_id, ) end |
.get_a_thread_subscription_for_the_authenticated_user(thread_id: nil, options: nil) ⇒ Object
94 95 96 |
# File 'lib/gitabu/api/v3/activity.rb', line 94 def self.get_a_thread_subscription_for_the_authenticated_user(thread_id: nil, options: nil) new.get_a_thread_subscription_for_the_authenticated_user(thread_id, ) end |
.get_feeds(options: nil) ⇒ Object
74 75 76 |
# File 'lib/gitabu/api/v3/activity.rb', line 74 def self.get_feeds(options: nil) new.get_feeds() end |
.list_events_for_the_authenticated_user(username: nil, options: nil) ⇒ Object
54 55 56 |
# File 'lib/gitabu/api/v3/activity.rb', line 54 def self.list_events_for_the_authenticated_user(username: nil, options: nil) new.list_events_for_the_authenticated_user(username, ) end |
.list_events_received_by_the_authenticated_user(username: nil, options: nil) ⇒ Object
66 67 68 |
# File 'lib/gitabu/api/v3/activity.rb', line 66 def self.list_events_received_by_the_authenticated_user(username: nil, options: nil) new.list_events_received_by_the_authenticated_user(username, ) end |
.list_notifications_for_the_authenticated_user(options: nil) ⇒ Object
78 79 80 |
# File 'lib/gitabu/api/v3/activity.rb', line 78 def self.list_notifications_for_the_authenticated_user(options: nil) new.list_notifications_for_the_authenticated_user() end |
.list_organization_events_for_the_authenticated_user(username: nil, org: nil, options: nil) ⇒ Object
58 59 60 |
# File 'lib/gitabu/api/v3/activity.rb', line 58 def self.list_organization_events_for_the_authenticated_user(username: nil, org: nil, options: nil) new.list_organization_events_for_the_authenticated_user(username, org, ) end |
.list_public_events(options: nil) ⇒ Object
38 39 40 |
# File 'lib/gitabu/api/v3/activity.rb', line 38 def self.list_public_events(options: nil) new.list_public_events() end |
.list_public_events_for_a_network_of_repositories(owner: nil, repo: nil, options: nil) ⇒ Object
42 43 44 |
# File 'lib/gitabu/api/v3/activity.rb', line 42 def self.list_public_events_for_a_network_of_repositories(owner: nil, repo: nil, options: nil) new.list_public_events_for_a_network_of_repositories(owner, repo, ) end |
.list_public_events_for_a_user(username: nil, options: nil) ⇒ Object
62 63 64 |
# File 'lib/gitabu/api/v3/activity.rb', line 62 def self.list_public_events_for_a_user(username: nil, options: nil) new.list_public_events_for_a_user(username, ) end |
.list_public_events_received_by_a_user(username: nil, options: nil) ⇒ Object
70 71 72 |
# File 'lib/gitabu/api/v3/activity.rb', line 70 def self.list_public_events_received_by_a_user(username: nil, options: nil) new.list_public_events_received_by_a_user(username, ) end |
.list_public_organization_events(org: nil, options: nil) ⇒ Object
46 47 48 |
# File 'lib/gitabu/api/v3/activity.rb', line 46 def self.list_public_organization_events(org: nil, options: nil) new.list_public_organization_events(org, ) end |
.list_repositories_starred_by_a_user(username: nil, options: nil) ⇒ Object
134 135 136 |
# File 'lib/gitabu/api/v3/activity.rb', line 134 def self.list_repositories_starred_by_a_user(username: nil, options: nil) new.list_repositories_starred_by_a_user(username, ) end |
.list_repositories_starred_by_the_authenticated_user(options: nil) ⇒ Object
118 119 120 |
# File 'lib/gitabu/api/v3/activity.rb', line 118 def self.list_repositories_starred_by_the_authenticated_user(options: nil) new.list_repositories_starred_by_the_authenticated_user() end |
.list_repositories_watched_by_a_user(username: nil, options: nil) ⇒ Object
158 159 160 |
# File 'lib/gitabu/api/v3/activity.rb', line 158 def self.list_repositories_watched_by_a_user(username: nil, options: nil) new.list_repositories_watched_by_a_user(username, ) end |
.list_repositories_watched_by_the_authenticated_user(options: nil) ⇒ Object
154 155 156 |
# File 'lib/gitabu/api/v3/activity.rb', line 154 def self.list_repositories_watched_by_the_authenticated_user(options: nil) new.list_repositories_watched_by_the_authenticated_user() end |
.list_repository_events(owner: nil, repo: nil, options: nil) ⇒ Object
50 51 52 |
# File 'lib/gitabu/api/v3/activity.rb', line 50 def self.list_repository_events(owner: nil, repo: nil, options: nil) new.list_repository_events(owner, repo, ) end |
.list_repository_notifications_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
106 107 108 |
# File 'lib/gitabu/api/v3/activity.rb', line 106 def self.list_repository_notifications_for_the_authenticated_user(owner: nil, repo: nil, options: nil) new.list_repository_notifications_for_the_authenticated_user(owner, repo, ) end |
.list_stargazers(owner: nil, repo: nil, options: nil) ⇒ Object
114 115 116 |
# File 'lib/gitabu/api/v3/activity.rb', line 114 def self.list_stargazers(owner: nil, repo: nil, options: nil) new.list_stargazers(owner, repo, ) end |
.list_watchers(owner: nil, repo: nil, options: nil) ⇒ Object
138 139 140 |
# File 'lib/gitabu/api/v3/activity.rb', line 138 def self.list_watchers(owner: nil, repo: nil, options: nil) new.list_watchers(owner, repo, ) end |
.mark_a_thread_as_read(thread_id: nil, options: nil) ⇒ Object
90 91 92 |
# File 'lib/gitabu/api/v3/activity.rb', line 90 def self.mark_a_thread_as_read(thread_id: nil, options: nil) new.mark_a_thread_as_read(thread_id, ) end |
.mark_notifications_as_read(last_read_at: nil, read: nil, options: nil) ⇒ Object
82 83 84 |
# File 'lib/gitabu/api/v3/activity.rb', line 82 def self.mark_notifications_as_read(last_read_at: nil, read: nil, options: nil) new.mark_notifications_as_read(last_read_at, read, ) end |
.mark_repository_notifications_as_read(owner: nil, repo: nil, last_read_at: nil, options: nil) ⇒ Object
110 111 112 |
# File 'lib/gitabu/api/v3/activity.rb', line 110 def self.mark_repository_notifications_as_read(owner: nil, repo: nil, last_read_at: nil, options: nil) new.mark_repository_notifications_as_read(owner, repo, last_read_at, ) end |
.set_a_repository_subscription(owner: nil, repo: nil, subscribed: nil, ignored: nil, options: nil) ⇒ Object
146 147 148 |
# File 'lib/gitabu/api/v3/activity.rb', line 146 def self.set_a_repository_subscription(owner: nil, repo: nil, subscribed: nil, ignored: nil, options: nil) new.set_a_repository_subscription(owner, repo, subscribed, ignored, ) end |
.set_a_thread_subscription(thread_id: nil, ignored: nil, options: nil) ⇒ Object
98 99 100 |
# File 'lib/gitabu/api/v3/activity.rb', line 98 def self.set_a_thread_subscription(thread_id: nil, ignored: nil, options: nil) new.set_a_thread_subscription(thread_id, ignored, ) end |
.star_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
126 127 128 |
# File 'lib/gitabu/api/v3/activity.rb', line 126 def self.star_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) new.star_a_repository_for_the_authenticated_user(owner, repo, ) end |
.unstar_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) ⇒ Object
130 131 132 |
# File 'lib/gitabu/api/v3/activity.rb', line 130 def self.unstar_a_repository_for_the_authenticated_user(owner: nil, repo: nil, options: nil) new.unstar_a_repository_for_the_authenticated_user(owner, repo, ) end |