Module: BWAPI::Client::Projects::Tags
- Included in:
- BWAPI::Client::Projects
- Defined in:
- lib/bwapi/client/projects/tags.rb
Overview
Tags module for projects/tags endpoints
Instance Method Summary collapse
-
#create_tag(project_id, opts = {}) ⇒ Hash
Create a new tag in project.
-
#delete_tag(project_id, tag_id) ⇒ Hash
Delete an existing tag in project.
-
#get_tag(project_id, tag_id) ⇒ Hash
Get a specific tag in project.
-
#tags(project_id, opts = {}) ⇒ Hash
Get all tags in project.
-
#update_tag(project_id, tag_id, opts = {}) ⇒ Hash
Update an existing tag in project.
Instance Method Details
#create_tag(project_id, opts = {}) ⇒ Hash
Create a new tag in project
32 33 34 |
# File 'lib/bwapi/client/projects/tags.rb', line 32 def create_tag(project_id, opts = {}) post "projects/#{project_id}/tags", opts end |
#delete_tag(project_id, tag_id) ⇒ Hash
Delete an existing tag in project
53 54 55 |
# File 'lib/bwapi/client/projects/tags.rb', line 53 def delete_tag(project_id, tag_id) delete "projects/#{project_id}/tags/#{tag_id}" end |
#get_tag(project_id, tag_id) ⇒ Hash
Get a specific tag in project
21 22 23 |
# File 'lib/bwapi/client/projects/tags.rb', line 21 def get_tag(project_id, tag_id) get "projects/#{project_id}/tags/#{tag_id}" end |
#tags(project_id, opts = {}) ⇒ Hash
Get all tags in project
12 13 14 |
# File 'lib/bwapi/client/projects/tags.rb', line 12 def (project_id, opts = {}) get "projects/#{project_id}/tags", opts end |
#update_tag(project_id, tag_id, opts = {}) ⇒ Hash
Update an existing tag in project
44 45 46 |
# File 'lib/bwapi/client/projects/tags.rb', line 44 def update_tag(project_id, tag_id, opts = {}) put "projects/#{project_id}/tags/#{tag_id}", opts end |