Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Added note to Task
Browse files Browse the repository at this point in the history
  • Loading branch information
codian committed Mar 8, 2012
1 parent 129be94 commit 52b4f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/wunderlist/api.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def tasks(list)
html_timestamp = html_task.css("span.timestamp") html_timestamp = html_task.css("span.timestamp")
task.date = Time.at(html_timestamp.first.attributes["rel"]. task.date = Time.at(html_timestamp.first.attributes["rel"].
value.to_i).to_date unless html_timestamp.empty? value.to_i).to_date unless html_timestamp.empty?
task.note = html_task.css('span.note').first.content
task.api = self task.api = self
task.list = list_obj task.list = list_obj


Expand Down
2 changes: 1 addition & 1 deletion lib/wunderlist/task.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
require "wunderlist/list" require "wunderlist/list"


class Wunderlist::Task 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) def initialize(name = nil, date = nil, list = nil, api = nil)
@name = name @name = name
Expand Down

0 comments on commit 52b4f00

Please sign in to comment.