class Fog::Tasks::Wunderlist::Task

Public Instance Methods

destroy() click to toggle source
# File lib/fog/wunderlist/models/tasks/task.rb, line 30
def destroy
  requires :id
  service.delete_task(id)
  true
end
save() click to toggle source
# File lib/fog/wunderlist/models/tasks/task.rb, line 36
def save
  requires :list_id, :title
  if identity
    update
  else
    merge_attributes(
      service.create_task(title, list_id, attributes).body
    )
  end
  true
end
update() click to toggle source
# File lib/fog/wunderlist/models/tasks/task.rb, line 48
def update
  requires :id
  merge_attributes(
    service.update_task(id, attributes).body
  )
  true
end