Module: Gitlab::Client::Events
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/events.rb
Overview
Defines methods related to events.
Instance Method Summary collapse
-
#events(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of authenticated user’s events.
-
#project_events(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of visible project events.
-
#user_events(user, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of user contribution events.
Instance Method Details
#events(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of authenticated user’s events
20 21 22 |
# File 'lib/gitlab/client/events.rb', line 20 def events( = {}) get('/events', query: ) end |
#project_events(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of visible project events
56 57 58 |
# File 'lib/gitlab/client/events.rb', line 56 def project_events(project, = {}) get("/projects/#{url_encode project}/events", query: ) end |
#user_events(user, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of user contribution events
38 39 40 |
# File 'lib/gitlab/client/events.rb', line 38 def user_events(user, = {}) get("/users/#{url_encode user}/events", query: ) end |