Class: Scalingo::Endpoint::Addon
- Inherits:
-
Resource
- Object
- OpenStruct
- Resource
- Scalingo::Endpoint::Addon
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
included
#resources
Methods included from Base
#initialize
Instance Method Details
#destroy ⇒ Object
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
|