Sha256: e86d40fdd3bf6d409c0c96050af9afaf04e0130443338729ee781d73732d36f9

Contents?: true

Size: 611 Bytes

Versions: 53

Compression:

Stored size: 611 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module GroupMemberships

      def group_membership(group, group_membership)
        get("/api/v1/groups/#{group}/memberships/#{group_membership}")
      end

      def list_group_memberships(group)
        get("/api/v1/groups/#{group.to_s}/memberships")
      end

      def create_group_membership(group_id, params={})
        post("/api/v1/groups/#{group_id}/memberships", params)
      end

      def delete_group_membership(group_id, context, context_id)
        delete("/api/v1/groups/#{group_id}/#{context}/#{context_id}")
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
bearcat-1.3.47 lib/bearcat/client/group_memberships.rb
bearcat-1.3.46 lib/bearcat/client/group_memberships.rb
bearcat-1.3.45 lib/bearcat/client/group_memberships.rb
bearcat-1.3.44 lib/bearcat/client/group_memberships.rb
bearcat-1.3.43 lib/bearcat/client/group_memberships.rb
bearcat-1.3.41 lib/bearcat/client/group_memberships.rb
bearcat-1.3.40 lib/bearcat/client/group_memberships.rb
bearcat-1.3.39 lib/bearcat/client/group_memberships.rb
bearcat-1.3.38 lib/bearcat/client/group_memberships.rb
bearcat-1.3.37 lib/bearcat/client/group_memberships.rb
bearcat-1.3.36 lib/bearcat/client/group_memberships.rb
bearcat-1.3.35 lib/bearcat/client/group_memberships.rb
bearcat-1.3.34 lib/bearcat/client/group_memberships.rb
bearcat-1.3.33 lib/bearcat/client/group_memberships.rb
bearcat-1.3.32 lib/bearcat/client/group_memberships.rb
bearcat-1.3.30 lib/bearcat/client/group_memberships.rb
bearcat-1.3.28 lib/bearcat/client/group_memberships.rb
bearcat-1.3.27 lib/bearcat/client/group_memberships.rb
bearcat-1.3.26 lib/bearcat/client/group_memberships.rb
bearcat-1.3.25 lib/bearcat/client/group_memberships.rb