lib/todoist/sync/items.rb in todoist-ruby-0.1.2 vs lib/todoist/sync/items.rb in todoist-ruby-0.1.3
- old
+ new
@@ -11,12 +11,12 @@
# Add a item with a given hash of attributes and returns the item id
def add(args)
return ApiHelper.add(args, "item_add")
end
- # Update item given a item
- def update(item)
- return ApiHelper.command(item.to_h, "item_update")
+ # Update item given a hash of attributes
+ def update(args)
+ return ApiHelper.command(args, "item_update")
end
# Delete items given an array of items
def delete(items)
item_ids = items.collect { |item| item.id }