Module: BWAPI::Client::Projects::Sharing
- Included in:
- BWAPI::Client::Projects
- Defined in:
- lib/bwapi/client/projects/sharing.rb
Overview
Sharing module for projects/sharing endpoints
Instance Method Summary collapse
-
#default_project_sharing ⇒ Hash
Default shares of a project.
-
#project_sharing(project_id, opts = {}) ⇒ Hash
Shares of a project.
-
#project_sharing_user(project_id, user_id) ⇒ Hash
User share of a project.
-
#update_project_sharing(project_id, opts = {}) ⇒ Hash
Update shares of a project.
-
#update_project_sharing_user(project_id, user_id, opts = {}) ⇒ Hash
Edit user share of a project.
Instance Method Details
#default_project_sharing ⇒ Hash
Default shares of a project
9 10 11 |
# File 'lib/bwapi/client/projects/sharing.rb', line 9 def default_project_sharing get 'projects/sharing' end |
#project_sharing(project_id, opts = {}) ⇒ Hash
Shares of a project
19 20 21 |
# File 'lib/bwapi/client/projects/sharing.rb', line 19 def project_sharing(project_id, opts = {}) get "projects/#{project_id}/sharing", opts end |
#project_sharing_user(project_id, user_id) ⇒ Hash
User share of a project
38 39 40 |
# File 'lib/bwapi/client/projects/sharing.rb', line 38 def project_sharing_user(project_id, user_id) get "projects/#{project_id}/sharing/#{user_id}" end |
#update_project_sharing(project_id, opts = {}) ⇒ Hash
Update shares of a project
29 30 31 |
# File 'lib/bwapi/client/projects/sharing.rb', line 29 def update_project_sharing(project_id, opts = {}) put "projects/#{project_id}/sharing", opts end |
#update_project_sharing_user(project_id, user_id, opts = {}) ⇒ Hash
Edit user share of a project
48 49 50 |
# File 'lib/bwapi/client/projects/sharing.rb', line 48 def update_project_sharing_user(project_id, user_id, opts = {}) put "projects/#{project_id}/sharing/#{user_id}", opts end |