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.4.13 lib/bearcat/client/group_memberships.rb
bearcat-1.4.12 lib/bearcat/client/group_memberships.rb
bearcat-1.4.11 lib/bearcat/client/group_memberships.rb
bearcat-1.4.10 lib/bearcat/client/group_memberships.rb
bearcat-1.4.9 lib/bearcat/client/group_memberships.rb
bearcat-1.4.8 lib/bearcat/client/group_memberships.rb
bearcat-1.4.7 lib/bearcat/client/group_memberships.rb
bearcat-1.4.6 lib/bearcat/client/group_memberships.rb
bearcat-1.4.5 lib/bearcat/client/group_memberships.rb
bearcat-1.4.4 lib/bearcat/client/group_memberships.rb
bearcat-1.4.3 lib/bearcat/client/group_memberships.rb
bearcat-1.4.2 lib/bearcat/client/group_memberships.rb
bearcat-1.4.1 lib/bearcat/client/group_memberships.rb
bearcat-1.4.0 lib/bearcat/client/group_memberships.rb
bearcat-1.3.55 lib/bearcat/client/group_memberships.rb
bearcat-1.3.53 lib/bearcat/client/group_memberships.rb
bearcat-1.3.52 lib/bearcat/client/group_memberships.rb
bearcat-1.3.51 lib/bearcat/client/group_memberships.rb
bearcat-1.3.49 lib/bearcat/client/group_memberships.rb
bearcat-1.3.48 lib/bearcat/client/group_memberships.rb