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 ⇒ Hashie::Mash
(also: #sharing)
Default shares of a project.
-
#project_sharing(id, opts = {}) ⇒ Hashie::Mash
Shares of a project.
-
#project_sharing_user(project_id, user_id) ⇒ Hashie::Mash
User share of a project.
-
#update_project_sharing(id, opts = {}) ⇒ Hashie::Mash
Update shares of a project.
-
#update_project_sharing_user(project_id, user_id) ⇒ Hashie::Mash
Edit user share of a project.
Instance Method Details
#default_project_sharing ⇒ Hashie::Mash Also known as:
Default shares of a project
10 11 12 |
# File 'lib/bwapi/client/projects/sharing.rb', line 10 def default_project_sharing get "projects/sharing" end |
#project_sharing(id, opts = {}) ⇒ Hashie::Mash
Shares of a project
22 23 24 |
# File 'lib/bwapi/client/projects/sharing.rb', line 22 def project_sharing id, opts={} get "projects/#{id}/sharing", opts end |
#project_sharing_user(project_id, user_id) ⇒ Hashie::Mash
User share of a project
42 43 44 |
# File 'lib/bwapi/client/projects/sharing.rb', line 42 def project_sharing_user project_id, user_id get "projects/#{project_id}/sharing/#{user_id}" end |
#update_project_sharing(id, opts = {}) ⇒ Hashie::Mash
Update shares of a project
33 34 35 |
# File 'lib/bwapi/client/projects/sharing.rb', line 33 def update_project_sharing id, opts={} put "projects/#{id}/sharing", opts end |
#update_project_sharing_user(project_id, user_id) ⇒ Hashie::Mash
Edit user share of a project
51 52 53 |
# File 'lib/bwapi/client/projects/sharing.rb', line 51 def update_project_sharing_user project_id, user_id put "projects/#{project_id}/sharing/#{user_id}" end |