Module: BWAPI::Client::Projects::Group::LocationGroup
- Included in:
- BWAPI::Client::Projects::Group
- Defined in:
- lib/bwapi/client/projects/group/location_group.rb
Overview
LocationGroup module for projects/group/location endpoints
Instance Method Summary collapse
-
#create_location_group(project_id, opts = {}) ⇒ Hash
Create a new location group in project.
-
#delete_location_group(project_id, location_group_id) ⇒ Hash
Delete an existing location group project.
-
#get_location_group(project_id, location_group_id) ⇒ Hash
Get a specific location group in project.
-
#location_groups_summary(project_id, opts = {}) ⇒ Hash
Get summary of all location groups in project.
-
#update_location_group(project_id, location_group_id, opts = {}) ⇒ Hash
Update an existing location group in project.
Instance Method Details
#create_location_group(project_id, opts = {}) ⇒ Hash
Create a new location group in project
34 35 36 |
# File 'lib/bwapi/client/projects/group/location_group.rb', line 34 def create_location_group(project_id, opts = {}) post "projects/#{project_id}/group/location", opts end |
#delete_location_group(project_id, location_group_id) ⇒ Hash
Delete an existing location group project
59 60 61 |
# File 'lib/bwapi/client/projects/group/location_group.rb', line 59 def delete_location_group(project_id, location_group_id) delete "projects/#{project_id}/group/location/#{location_group_id}" end |
#get_location_group(project_id, location_group_id) ⇒ Hash
Get a specific location group in project
20 21 22 |
# File 'lib/bwapi/client/projects/group/location_group.rb', line 20 def get_location_group(project_id, location_group_id) get "projects/#{project_id}/group/location/#{location_group_id}" end |
#location_groups_summary(project_id, opts = {}) ⇒ Hash
Get summary of all location groups in project
11 12 13 |
# File 'lib/bwapi/client/projects/group/location_group.rb', line 11 def location_groups_summary(project_id, opts = {}) get "projects/#{project_id}/group/location/summary", opts end |
#update_location_group(project_id, location_group_id, opts = {}) ⇒ Hash
Update an existing location group in project
50 51 52 |
# File 'lib/bwapi/client/projects/group/location_group.rb', line 50 def update_location_group(project_id, location_group_id, opts = {}) put "projects/#{project_id}/group/location/#{location_group_id}", opts end |