Module: Voog::API::Tags

Included in:
Client
Defined in:
lib/voog_api/api/tags.rb

Overview

Voog Tags API methods.

Instance Method Summary collapse

Instance Method Details

#delete_tag(id) ⇒ Object

Delete a tag



33
34
35
# File 'lib/voog_api/api/tags.rb', line 33

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

#tag(id, params = {}) ⇒ Object

Get a single tag



19
20
21
# File 'lib/voog_api/api/tags.rb', line 19

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

#tags(params = {}) ⇒ Object

List tags



12
13
14
# File 'lib/voog_api/api/tags.rb', line 12

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

#update_tag(id, data) ⇒ Object

Update a tag



26
27
28
# File 'lib/voog_api/api/tags.rb', line 26

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