Sha256: dbfbe7a7005784bcbac360891b0010abb6e0672bd1af2103b6c01aa49ca30f67

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents

module Voog
  class API
    module Tags

      # List tags
      def tags(params = {})
        paginate 'tags', {query: params}
      end

      # Get a single tag
      def tag(id, params = {})
        get "tags/#{id}", {query: params}
      end

      # Update a tag
      def update_tag(id, data)
        put "tags/#{id}", data
      end

      # Delete a tag
      def delete_tag(id)
        delete "tags/#{id}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voog_api-0.0.10 lib/voog_api/api/tags.rb