Class: Scalingo::Endpoint::Alert

Inherits:
Resource
  • Object
show all
Defined in:
lib/scalingo/endpoint/alerts.rb

Instance Attribute Summary

Attributes included from Base

#api, #auth_api, #prefix

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from Scalingo::Endpoint

included

Methods included from ClassMethods

#resources

Methods included from Base

#initialize

Constructor Details

This class inherits a constructor from Scalingo::Endpoint::Resource

Instance Method Details

#destroyObject



20
21
22
# File 'lib/scalingo/endpoint/alerts.rb', line 20

def destroy
  delete
end

#update(params) ⇒ Object



16
17
18
# File 'lib/scalingo/endpoint/alerts.rb', line 16

def update(params)
  patch(nil, alert: params)
end