Sha256: b21fe5cc1d48bc1dbf7850cfec14f172df86abab391229c025aa307fae1dd924

Contents?: true

Size: 864 Bytes

Versions: 6

Compression:

Stored size: 864 Bytes

Contents

module Voog
  class API

    # Voog Tags API methods.
    #
    # @see http://www.voog.com/developers/api/resources/tags
    module Tags

      # List tags
      #
      # @see http://www.voog.com/developers/api/resources/tags#get_tags
      def tags(params = {})
        paginate 'tags', {query: params}
      end

      # Get a single tag
      #
      # @see http://www.voog.com/developers/api/resources/tags#get_tag
      def tag(id, params = {})
        get "tags/#{id}", {query: params}
      end

      # Update a tag
      #
      # @see http://www.voog.com/developers/api/resources/tags#update_tag
      def update_tag(id, data)
        put "tags/#{id}", data
      end

      # Delete a tag
      #
      # @see http://www.voog.com/developers/api/resources/tags#remove_tag
      def delete_tag(id)
        delete "tags/#{id}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voog_api-0.0.16 lib/voog_api/api/tags.rb
voog_api-0.0.15 lib/voog_api/api/tags.rb
voog_api-0.0.14 lib/voog_api/api/tags.rb
voog_api-0.0.13 lib/voog_api/api/tags.rb
voog_api-0.0.12 lib/voog_api/api/tags.rb
voog_api-0.0.11 lib/voog_api/api/tags.rb