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.4.9 lib/shelly/client/organizations.rb
shelly-0.4.8 lib/shelly/client/organizations.rb
shelly-0.4.7 lib/shelly/client/organizations.rb
shelly-0.4.6 lib/shelly/client/organizations.rb
shelly-0.4.5 lib/shelly/client/organizations.rb
shelly-0.4.4 lib/shelly/client/organizations.rb
shelly-0.4.2 lib/shelly/client/organizations.rb
shelly-0.4.1 lib/shelly/client/organizations.rb
shelly-0.4.0 lib/shelly/client/organizations.rb
shelly-0.4.0.pre lib/shelly/client/organizations.rb