lib/todoist/sync/notes.rb in todoist-ruby-0.1.2 vs lib/todoist/sync/notes.rb in todoist-ruby-0.1.3

- old
+ new

@@ -13,12 +13,12 @@ # content is also a required key in the hash. def add(args) return ApiHelper.add(args, "note_add") end - # Update a note given a note - def update(note) - return ApiHelper.command(note.to_h, "note_update") + # Update a note given a hash of attributes + def update(args) + return ApiHelper.command(args, "note_update") end # Delete notes given an a note def delete(note) args = {id: note.id}