lib/todoist/sync/labels.rb in todoist-ruby-0.1.2 vs lib/todoist/sync/labels.rb in todoist-ruby-0.1.3
- old
+ new
@@ -11,12 +11,12 @@
# Add a label with a given hash of attributes and returns the label id
def add(args)
return ApiHelper.add(args, "label_add")
end
- # Update label given a label
- def update(label)
- return ApiHelper.command(label.to_h, "label_update")
+ # Update label given a hash of attributes
+ def update(args)
+ return ApiHelper.command(args, "label_update")
end
# Delete a label given a label
def delete(label)
args = {id: label.id}