Sha256: f65cb9fea298b614df6e6cc596c2e5a219427bc30f49d4fda76fb583afada8ff

Contents?: true

Size: 653 Bytes

Versions: 57

Compression:

Stored size: 653 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module GroupCategories

      def list_group_categories(context, id)
        get("/api/v1/#{context}/#{id}/group_categories")
      end

      def group_category(id)
        get("/api/v1/group_categories/#{id}")
      end

      def edit_group_category(id, params={})
        put("/api/v1/group_categories/#{id}", params)
      end

      def create_group_category(context, id, params={})
        post("/api/v1/#{context}/#{id}/group_categories", params)
      end

      def delete_group_category(id, params={})
        delete("/api/v1/group_categories/#{id}/", params)
      end

    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

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