lib/todoist/sync/projects.rb in todoist-ruby-0.1.2 vs lib/todoist/sync/projects.rb in todoist-ruby-0.1.3
- old
+ new
@@ -34,12 +34,12 @@
project_ids = projects.collect { |project| project.id }
args = {ids: project_ids.to_json}
return ApiHelper.command(args, "project_unarchive")
end
- # Update project given a project
- def update(project)
- return ApiHelper.command(project.to_h, "project_update")
+ # Update project given a hash of attributes
+ def update(args)
+ return ApiHelper.command(args, "project_update")
end
# Update orders and indents for an array of projects
def update_multiple_orders_and_indents(projects)
tuples = {}
\ No newline at end of file