Sha256: 2cc46b465a67f2480ab448b4223ddc65064885ede745eefca961e81d40062b6d
Contents?: true
Size: 553 Bytes
Versions: 50
Compression:
Stored size: 553 Bytes
Contents
class Shelly::Client def organizations get("/organizations") end def organization(name) get("/organizations/#{name}") end def create_organization(attributes) post("/organizations", :organization => attributes) end def members(name) get("/organizations/#{name}/memberships") end def send_invitation(name, email, owner = false) post("/organizations/#{name}/memberships", :email => email, :owner => owner) end def delete_member(name, email) delete("/organizations/#{name}/memberships/#{email}") end end
Version data entries
50 entries across 50 versions & 1 rubygems