Sha256: 583404da7650f52988a718da4cf895cb772b2f7846acaee005c4562507f64721

Contents?: true

Size: 452 Bytes

Versions: 10

Compression:

Stored size: 452 Bytes

Contents

class Shelly::Client
  def organizations
    get("/organizations")
  end

  def organization(name)
    get("/organizations/#{name}")
  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

10 entries across 10 versions & 1 rubygems

Version Path
shelly-0.3.8 lib/shelly/client/organizations.rb
shelly-0.3.7 lib/shelly/client/organizations.rb
shelly-0.3.6 lib/shelly/client/organizations.rb
shelly-0.3.5 lib/shelly/client/organizations.rb
shelly-0.3.5.pre lib/shelly/client/organizations.rb
shelly-0.3.4 lib/shelly/client/organizations.rb
shelly-0.3.3 lib/shelly/client/organizations.rb
shelly-0.3.2 lib/shelly/client/organizations.rb
shelly-0.3.1 lib/shelly/client/organizations.rb
shelly-0.3.0 lib/shelly/client/organizations.rb