class LabClient::GroupLabel

Inspect Helper

Public Instance Methods

delete() click to toggle source
# File lib/labclient/groups/labels/group_label.rb, line 21
def delete
  group_id = collect_group_id

  client.groups.labels.delete(group_id, id)
end
group() click to toggle source
# File lib/labclient/groups/labels/group_label.rb, line 10
def group
  group_id = collect_group_id
  client.groups.show group_id
end
inspect() click to toggle source
# File lib/labclient/groups/labels/group_label.rb, line 6
def inspect
  "#<GroupLabel id: #{id}, name: #{name}>"
end
subscribe() click to toggle source
# File lib/labclient/groups/labels/group_label.rb, line 27
def subscribe
  group_id = collect_group_id

  client.groups.labels.subscribe(group_id, id)
end
unsubscribe() click to toggle source
# File lib/labclient/groups/labels/group_label.rb, line 33
def unsubscribe
  group_id = collect_group_id

  client.groups.labels.unsubscribe(group_id, id)
end
update(query) click to toggle source
# File lib/labclient/groups/labels/group_label.rb, line 15
def update(query)
  group_id = collect_group_id

  update_self client.groups.labels.update(group_id, id, query)
end