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