Module: Tacokit::Client::Labels

Included in:
Tacokit::Client
Defined in:
lib/tacokit/client/labels.rb

Instance Method Summary collapse

Instance Method Details

#create_label(board_id, name, color) ⇒ Object

Create a label


21
22
23
24
25
26
# File 'lib/tacokit/client/labels.rb', line 21

def create_label(board_id, name, color)
  post label_path,
    board_id: board_id,
    name: name,
    color: color
end

#delete_label(label_id) ⇒ Object

Delete a label


31
32
33
# File 'lib/tacokit/client/labels.rb', line 31

def delete_label(label_id)
  delete label_path(label_id)
end

#label(label_id, options = nil) ⇒ Object

Retrieve a label


7
8
9
# File 'lib/tacokit/client/labels.rb', line 7

def label(label_id, options = nil)
  get label_path(label_id), options
end

#update_label(label_id, options = {}) ⇒ Object

Update a label


14
15
16
# File 'lib/tacokit/client/labels.rb', line 14

def update_label(label_id, options = {})
  put label_path(label_id), options
end