Sha256: d96cfad900bc57429fa54441d6e73cbd9468beae89358a25487ec0dde7cf0de0

Contents?: true

Size: 476 Bytes

Versions: 19

Compression:

Stored size: 476 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module GroupMemberships

      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

19 entries across 19 versions & 1 rubygems

Version Path
bearcat-1.3.11 lib/bearcat/client/group_memberships.rb
bearcat-1.3.10 lib/bearcat/client/group_memberships.rb
bearcat-1.3.9 lib/bearcat/client/group_memberships.rb
bearcat-1.3.8 lib/bearcat/client/group_memberships.rb
bearcat-1.3.7 lib/bearcat/client/group_memberships.rb
bearcat-1.3.6 lib/bearcat/client/group_memberships.rb
bearcat-1.3.5 lib/bearcat/client/group_memberships.rb
bearcat-1.3.4 lib/bearcat/client/group_memberships.rb
bearcat-1.3.3 lib/bearcat/client/group_memberships.rb
bearcat-1.3.2 lib/bearcat/client/group_memberships.rb
bearcat-1.3.1 lib/bearcat/client/group_memberships.rb
bearcat-1.2.18 lib/bearcat/client/group_memberships.rb
bearcat-1.2.17 lib/bearcat/client/group_memberships.rb
bearcat-1.2.16 lib/bearcat/client/group_memberships.rb
bearcat-1.2.15 lib/bearcat/client/group_memberships.rb
bearcat-1.2.14 lib/bearcat/client/group_memberships.rb
bearcat-1.2.13 lib/bearcat/client/group_memberships.rb
bearcat-1.2.12 lib/bearcat/client/group_memberships.rb
bearcat-1.2.11 lib/bearcat/client/group_memberships.rb