Module: BWAPI::Client::Projects::Alerts
- Included in:
- BWAPI::Client::Projects
- Defined in:
- lib/bwapi/client/projects/alerts.rb
Overview
Alerts module for alerts endpoints
Instance Method Summary collapse
-
#alerts(project_id) ⇒ Hash
Get a list of alerts.
-
#create_alert(project_id, opts = {}) ⇒ Hash
Create a new alert in project.
-
#get_alert(project_id, alert_id) ⇒ Hash
Get a selected alert.
-
#update_alert(project_id, opts = {}) ⇒ Hash
Update an existing alert in project.
Instance Method Details
#alerts(project_id) ⇒ Hash
Get a list of alerts
10 11 12 |
# File 'lib/bwapi/client/projects/alerts.rb', line 10 def alerts(project_id) get "projects/#{project_id}/alerts" end |
#create_alert(project_id, opts = {}) ⇒ Hash
Create a new alert in project
48 49 50 |
# File 'lib/bwapi/client/projects/alerts.rb', line 48 def create_alert(project_id, opts = {}) post "/projects/#{project_id}/alerts", opts end |
#get_alert(project_id, alert_id) ⇒ Hash
Get a selected alert
19 20 21 |
# File 'lib/bwapi/client/projects/alerts.rb', line 19 def get_alert(project_id, alert_id) get "projects/#{project_id}/alerts/#{alert_id}" end |
#update_alert(project_id, opts = {}) ⇒ Hash
Update an existing alert in project
77 78 79 |
# File 'lib/bwapi/client/projects/alerts.rb', line 77 def update_alert(project_id, opts = {}) put "/projects/#{project_id}/alerts", opts end |