Module: BWAPI::Client::Projects::Sharing
- Included in:
- BWAPI::Client::Projects
- Defined in:
- lib/bwapi/client/projects/sharing.rb
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
9 10 11 |
# File 'lib/bwapi/client/projects/sharing.rb', line 9 def default_project_sharing get "projects/sharing" end |
#project_sharing(id, opts = {}) ⇒ Hashie::Mash
Shares of a project
21 22 23 |
# File 'lib/bwapi/client/projects/sharing.rb', line 21 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
41 42 43 |
# File 'lib/bwapi/client/projects/sharing.rb', line 41 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
32 33 34 |
# File 'lib/bwapi/client/projects/sharing.rb', line 32 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
50 51 52 |
# File 'lib/bwapi/client/projects/sharing.rb', line 50 def update_project_sharing_user project_id, user_id put "projects/#{project_id}/sharing/#{user_id}" end |