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