class LabClient::ProjectLabels

Inspect Helper

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Public Instance Methods

create(project_id, query) click to toggle source
# File lib/labclient/projects/labels/create.rb, line 33
def create(project_id, query)
  project_id = format_id(project_id)

  client.request(:post, "projects/#{project_id}/labels", ProjectLabel, query)
end
delete(project_id, label_id) click to toggle source
# File lib/labclient/projects/labels/delete.rb, line 26
def delete(project_id, label_id)
  project_id = format_id(project_id)
  label_id = format_id(label_id)

  client.request(:delete, "projects/#{project_id}/labels/#{label_id}", ProjectLabel)
end
list(project_id, query = {}) click to toggle source
# File lib/labclient/projects/labels/list.rb, line 29
def list(project_id, query = {})
  project_id = format_id(project_id)

  client.request(:get, "projects/#{project_id}/labels", ProjectLabel, query)
end
promote(project_id, label_id) click to toggle source
# File lib/labclient/projects/labels/promote.rb, line 28
def promote(project_id, label_id)
  project_id = format_id(project_id)
  label_id = format_id(label_id)

  client.request(:put, "projects/#{project_id}/labels/#{label_id}/promote", ProjectLabel)
end
show(project_id, label_id, query = {}) click to toggle source
# File lib/labclient/projects/labels/show.rb, line 27
def show(project_id, label_id, query = {})
  project_id = format_id(project_id)
  label_id = format_id(label_id)

  client.request(:get, "projects/#{project_id}/labels/#{label_id}", ProjectLabel, query)
end
subscribe(project_id, label_id) click to toggle source
# File lib/labclient/projects/labels/subscribe.rb, line 28
def subscribe(project_id, label_id)
  project_id = format_id(project_id)
  label_id = format_id(label_id)

  client.request(:post, "projects/#{project_id}/labels/#{label_id}/subscribe", ProjectLabel)
end
unsubscribe(project_id, label_id) click to toggle source
# File lib/labclient/projects/labels/unsubscribe.rb, line 28
def unsubscribe(project_id, label_id)
  project_id = format_id(project_id)
  label_id = format_id(label_id)

  client.request(:post, "projects/#{project_id}/labels/#{label_id}/unsubscribe", ProjectLabel)
end
update(project_id, label_id, query) click to toggle source
# File lib/labclient/projects/labels/update.rb, line 39
def update(project_id, label_id, query)
  project_id = format_id(project_id)
  label_id = format_id(label_id)

  client.request(:put, "projects/#{project_id}/labels/#{label_id}", ProjectLabel, query)
end