Module: BWAPI::Client::Projects::Signals::Groups
- Included in:
- BWAPI::Client::Projects::Signals
- Defined in:
- lib/bwapi/client/projects/signals/groups.rb
Overview
Groups module for projects/signals/groups endpoint
Instance Method Summary collapse
-
#create_signal_group(project_id, opts = {}) ⇒ Hash
Create a new signal group.
-
#delete_signal_group(project_id, group_id) ⇒ Hash
Delete a signal group.
-
#get_signal_group(project_id, group_id) ⇒ Hash
Get a specific signal group.
-
#get_signal_group_signals(project_id, group_id) ⇒ Hash
Get all signals for a specific group.
-
#signal_groups(project_id, opts = {}) ⇒ Hash
Get all signal groups.
-
#update_signal_group(project_id, group_id, opts = {}) ⇒ Hash
Update a signal group.
Instance Method Details
#create_signal_group(project_id, opts = {}) ⇒ Hash
Create a new signal group
39 40 41 |
# File 'lib/bwapi/client/projects/signals/groups.rb', line 39 def create_signal_group(project_id, opts = {}) post "/projects/#{project_id}/signals/groups", opts end |
#delete_signal_group(project_id, group_id) ⇒ Hash
Delete a signal group
65 66 67 |
# File 'lib/bwapi/client/projects/signals/groups.rb', line 65 def delete_signal_group(project_id, group_id) delete "/projects/#{project_id}/signals/groups/#{group_id}" end |
#get_signal_group(project_id, group_id) ⇒ Hash
Get a specific signal group
23 24 25 |
# File 'lib/bwapi/client/projects/signals/groups.rb', line 23 def get_signal_group(project_id, group_id) get "/projects/#{project_id}/signals/groups/#{group_id}" end |
#get_signal_group_signals(project_id, group_id) ⇒ Hash
Get all signals for a specific group
74 75 76 |
# File 'lib/bwapi/client/projects/signals/groups.rb', line 74 def get_signal_group_signals(project_id, group_id) get "/projects/#{project_id}/signals/groups/#{group_id}/signals" end |
#signal_groups(project_id, opts = {}) ⇒ Hash
Get all signal groups
14 15 16 |
# File 'lib/bwapi/client/projects/signals/groups.rb', line 14 def signal_groups(project_id, opts = {}) get "/projects/#{project_id}/signals/groups", opts end |
#update_signal_group(project_id, group_id, opts = {}) ⇒ Hash
Update a signal group
56 57 58 |
# File 'lib/bwapi/client/projects/signals/groups.rb', line 56 def update_signal_group(project_id, group_id, opts = {}) put "/projects/#{project_id}/signals/groups/#{group_id}", opts end |