Class: Scalingo::Endpoint::Addons

Inherits:
Collection 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 Collection

#all, #collection_name, #each, #find, #find_by, #resource_class

Methods included from Scalingo::Endpoint

included

Methods included from ClassMethods

#resources

Methods included from Base

#initialize

Instance Method Details

#create(addon_provider_id, plan_id) ⇒ Object



4
5
6
# File 'lib/scalingo/endpoint/addons.rb', line 4

def create(addon_provider_id, plan_id)
  post(nil, addon: { addon_provider_id: addon_provider_id, plan_id: plan_id })
end