Class: Scalingo::Endpoint::Addon

Inherits:
Resource
  • Object
show all
Defined in:
lib/scalingo/endpoint/addons.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



13
14
15
# File 'lib/scalingo/endpoint/addons.rb', line 13

def destroy
  delete
end

#update(plan_id) ⇒ Object



9
10
11
# File 'lib/scalingo/endpoint/addons.rb', line 9

def update(plan_id)
  patch(nil, addon: { plan_id: plan_id })
end