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.24 lib/bearcat/client/group_categories.rb
bearcat-1.3.23 lib/bearcat/client/group_categories.rb
bearcat-1.3.22 lib/bearcat/client/group_categories.rb
bearcat-1.3.21 lib/bearcat/client/group_categories.rb
bearcat-1.3.20 lib/bearcat/client/group_categories.rb
bearcat-1.3.19 lib/bearcat/client/group_categories.rb
bearcat-1.3.18 lib/bearcat/client/group_categories.rb
bearcat-1.3.17 lib/bearcat/client/group_categories.rb
bearcat-1.3.16 lib/bearcat/client/group_categories.rb
bearcat-1.3.15 lib/bearcat/client/group_categories.rb
bearcat-1.3.14 lib/bearcat/client/group_categories.rb
bearcat-1.3.13 lib/bearcat/client/group_categories.rb
bearcat-1.3.12 lib/bearcat/client/group_categories.rb
bearcat-1.3.11 lib/bearcat/client/group_categories.rb
bearcat-1.3.10 lib/bearcat/client/group_categories.rb
bearcat-1.3.9 lib/bearcat/client/group_categories.rb
bearcat-1.3.8 lib/bearcat/client/group_categories.rb