Sha256: c6131fe16b3cd10c05226a180e3fe0c6c491cda25c98acb2a82855314ab65076
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
class Shelly::Client def organizations get("/organizations") end def organization(name) get("/organizations/#{name}") end def create_organization(attributes, referral_code = nil) post("/organizations", :organization => attributes, :referral_code => referral_code) 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
5 entries across 5 versions & 1 rubygems