Class: RTM::Tasks::Add
Overview
GetList
Instance Method Summary collapse
-
#initialize(token, timeline, list, name) ⇒ Add
constructor
A new instance of Add.
- #parse_result(result) ⇒ Object
Methods inherited from API
get_auth_url, init, #invoke, key, #sign, token, token=
Constructor Details
#initialize(token, timeline, list, name) ⇒ Add
Returns a new instance of Add.
30 31 32 33 34 35 36 |
# File 'lib/rtmilk/api/tasks.rb', line 30 def initialize(token, timeline, list, name) super 'rtm.tasks.add', token @token = token @param[:timeline] = timeline @param[:list_id] = list @param[:name] = name end |
Instance Method Details
#parse_result(result) ⇒ Object
25 26 27 28 |
# File 'lib/rtmilk/api/tasks.rb', line 25 def parse_result(result) super [result['list'].first, result['transaction']] end |