module Teambition2::API::Tag

Public Instance Methods

create_tag(project_id, tag) click to toggle source
# File lib/teambition2/api/tag.rb, line 12
def create_tag(project_id, tag)
  post('/api/tags', {
    'name' => tag,
    '_projectId' => project_id
    })
end
tag(tag_id) click to toggle source
# File lib/teambition2/api/tag.rb, line 8
def tag(tag_id)
  get("/api/tags/#{tag_id}")
end
tags(type, id) click to toggle source
# File lib/teambition2/api/tag.rb, line 4
def tags(type, id)
  get("/api/#{type}/#{id}/tags")
end