Class: Zedkit::ProjectAdmins

Inherits:
Object
  • Object
show all
Defined in:
lib/zedkit/resources/project_admins.rb

Class Method Summary collapse

Class Method Details

.create(zks = {}, &block) ⇒ Object



21
22
23
# File 'lib/zedkit/resources/project_admins.rb', line 21

def create(zks = {}, &block)
  Zedkit::Client.crud(:create, "projects/#{zks[:project][:uuid]}/admins", zks, %w(project), &block)
end

.delete(zks = {}, &block) ⇒ Object



30
31
32
# File 'lib/zedkit/resources/project_admins.rb', line 30

def delete(zks = {}, &block)
  Zedkit::Client.crud(:delete, "projects/#{zks[:project][:uuid]}/admins/#{zks[:admin][:uuid]}", zks, [], &block)
end

.update(zks = {}, &block) ⇒ Object



25
26
27
28
# File 'lib/zedkit/resources/project_admins.rb', line 25

def update(zks = {}, &block)
  Zedkit::Client.crud(:update, "projects/#{zks[:project][:uuid]}/admins/#{zks[:admin][:uuid]}", zks,
                                                                          %w(project admin), &block)
end