class RTM::Chunk
correspond to each Task
.
Public Class Methods
new(hash)
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 184 def initialize(hash) @hash = hash end
Public Instance Methods
added()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 175 def added; @hash['added']; end
completed()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 174 def completed; @hash['completed']; end
delete(series, list)
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 188 def delete(series, list) token = RTM::API.token timeline = RTM::Timeline.new(RTM::API.token).to_s RTM::Tasks::Delete.new(token, timeline, list, series, id).invoke # TODO end
deleted()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 179 def deleted; @hash['deleted']; end
due()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 182 def due; @hash['due']; end
estimate()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 181 def estimate; @hash['estimate']; end
has_due_time()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 180 def has_due_time; @hash['has_due_time'] == '1' ; end
id()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 178 def id; @hash['id']; end
postponed()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 176 def postponed; @hash['postponed']; end
priority()
click to toggle source
# File lib/rtmilk/api/tasks.rb, line 177 def priority; @hash['priority']; end