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

Version Path
shelly-0.5.2 lib/shelly/client/organizations.rb
shelly-0.5.1 lib/shelly/client/organizations.rb
shelly-0.5.0 lib/shelly/client/organizations.rb
shelly-0.4.42 lib/shelly/client/organizations.rb
shelly-0.4.41 lib/shelly/client/organizations.rb
shelly-0.4.40 lib/shelly/client/organizations.rb
shelly-0.4.39 lib/shelly/client/organizations.rb
shelly-0.4.38 lib/shelly/client/organizations.rb
shelly-0.4.37 lib/shelly/client/organizations.rb
shelly-0.4.36 lib/shelly/client/organizations.rb
shelly-0.4.35 lib/shelly/client/organizations.rb
shelly-0.4.34 lib/shelly/client/organizations.rb
shelly-0.4.33 lib/shelly/client/organizations.rb
shelly-0.4.32 lib/shelly/client/organizations.rb
shelly-0.4.31 lib/shelly/client/organizations.rb
shelly-0.4.30 lib/shelly/client/organizations.rb
shelly-0.4.29 lib/shelly/client/organizations.rb
shelly-0.4.29.pre lib/shelly/client/organizations.rb
shelly-0.4.28 lib/shelly/client/organizations.rb
shelly-0.4.28.pre2 lib/shelly/client/organizations.rb