Module: Gitlab::Client::Epics
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/epics.rb
Overview
Defines methods related to Epics.
Instance Method Summary collapse
-
#create_epic(group_id, title, options = {}) ⇒ Gitlab::ObjectifiedHash
Creates a new epic.
-
#delete_epic(group_id, epic_iid) ⇒ Object
Deletes an epic.
-
#edit_epic(group_id, epic_iid, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates an existing epic.
-
#epic(group_id, epic_iid, options = {}) ⇒ Gitlab::ObjectifiedHash
Gets a single epic.
-
#epics(group_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of epics.
Instance Method Details
#create_epic(group_id, title, options = {}) ⇒ Gitlab::ObjectifiedHash
Creates a new epic.
44 45 46 47 |
# File 'lib/gitlab/client/epics.rb', line 44 def create_epic(group_id, title, = {}) body = .merge(title: title) post("/groups/#{group_id}/epics", body: body) end |
#delete_epic(group_id, epic_iid) ⇒ Object
Deletes an epic.
55 56 57 |
# File 'lib/gitlab/client/epics.rb', line 55 def delete_epic(group_id, epic_iid) delete("/groups/#{group_id}/epics/#{epic_iid}") end |
#edit_epic(group_id, epic_iid, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates an existing epic.
69 70 71 |
# File 'lib/gitlab/client/epics.rb', line 69 def edit_epic(group_id, epic_iid, = {}) put("/groups/#{group_id}/epics/#{epic_iid}", body: ) end |
#epic(group_id, epic_iid, options = {}) ⇒ Gitlab::ObjectifiedHash
Gets a single epic.
31 32 33 |
# File 'lib/gitlab/client/epics.rb', line 31 def epic(group_id, epic_iid, = {}) get("/groups/#{group_id}/epics/#{epic_iid}", query: ) end |
#epics(group_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of epics.
18 19 20 |
# File 'lib/gitlab/client/epics.rb', line 18 def epics(group_id, = {}) get("/groups/#{group_id}/epics", query: ) end |