Module: Appilf::Client::Alerts

Included in:
Appilf::Client
Defined in:
lib/appilf/client/alerts.rb

Instance Method Summary collapse

Instance Method Details

#alerts_pathObject



13
14
15
# File 'lib/appilf/client/alerts.rb', line 13

def alerts_path
  "#{authenticated_user_path}/alerts"
end

#list_alertsObject



7
8
9
10
11
# File 'lib/appilf/client/alerts.rb', line 7

def list_alerts
  response = authenticated_api_get(alerts_path)
  # workaround since alert's response does not come within the data field
  Appilf::Util.translate_from_response({'data' => response})
end