Class: RTM::Tasks::GetList

Inherits:
API
  • Object
show all
Defined in:
lib/rtmilk/api/tasks.rb

Overview

get all TaskSeries.

Instance Method Summary collapse

Methods inherited from API

#api_host, auth_host, get_auth_url, init, #invoke, key, #sign, token, token=

Constructor Details

#initialize(token, list_id = nil, filter = nil, last_sync = nil) ⇒ GetList

Returns a new instance of GetList.



16
17
18
19
20
21
# File 'lib/rtmilk/api/tasks.rb', line 16

def initialize(token, list_id=nil, filter=nil, last_sync=nil)
   super 'rtm.tasks.getList', token
   @param[:list_id] = list_id if list_id
   @param[:filter] = filter if filter
   @param[:last_sync] = last_sync if last_sync
end

Instance Method Details

#parse_result(result) ⇒ Object

return [list_id, taskseries*]*



11
12
13
14
# File 'lib/rtmilk/api/tasks.rb', line 11

def parse_result(result)
   super
   result['tasks'].first['list']
end