Class: Scalingo::Endpoint::Collaborators

Inherits:
Collection
  • Object
show all
Defined in:
lib/scalingo/endpoint/collaborators.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(email) ⇒ Object



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

def create(email)
  post(nil, collaborator: { email: email })
end