Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added note to Task

  • Loading branch information...
commit 52b4f00e9edde896b72d71bc5b81f49c930400fa 1 parent 129be94
@codian codian authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  lib/wunderlist/api.rb
  2. +1 −1  lib/wunderlist/task.rb
View
1  lib/wunderlist/api.rb
@@ -118,6 +118,7 @@ def tasks(list)
html_timestamp = html_task.css("span.timestamp")
task.date = Time.at(html_timestamp.first.attributes["rel"].
value.to_i).to_date unless html_timestamp.empty?
+ task.note = html_task.css('span.note').first.content
task.api = self
task.list = list_obj
View
2  lib/wunderlist/task.rb
@@ -24,7 +24,7 @@
require "wunderlist/list"
class Wunderlist::Task
- attr_accessor :id, :name, :important, :done, :date, :api, :list
+ attr_accessor :id, :name, :important, :done, :date, :note, :api, :list
def initialize(name = nil, date = nil, list = nil, api = nil)
@name = name
Please sign in to comment.
Something went wrong with that request. Please try again.