Class: Scalingo::Endpoint::Apps

Inherits:
Collection show all
Defined in:
lib/scalingo/endpoint/apps.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, #resource_class

Methods included from Scalingo::Endpoint

included

Methods included from ClassMethods

#resources

Methods included from Base

#initialize

Instance Method Details

#create(name) ⇒ Object



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

def create(name)
  post(nil, app: { name: name })
end

#find_byObject



8
9
10
# File 'lib/scalingo/endpoint/apps.rb', line 8

def find_by
  'name'
end