Class: RTM::Lists::SetName
Overview
Instance Method Summary collapse
-
#initialize(token, id, name) ⇒ SetName
constructor
A new instance of SetName.
-
#parse_result(result) ⇒ Object
return [name, smart, filter?, id, archived, deleted, position, locked]*.
Methods inherited from API
get_auth_url, init, #invoke, key, #sign, token, token=
Constructor Details
#initialize(token, id, name) ⇒ SetName
69 70 71 72 73 |
# File 'lib/rtmilk/api/lists.rb', line 69 def initialize(token, id, name) super 'rtm.lists.setName', token, RTM::Timeline.new(token).to_s @param['list_id'] = id @param['name'] = name end |
Instance Method Details
#parse_result(result) ⇒ Object
return [name, smart, filter?, id, archived, deleted, position, locked]*
64 65 66 67 |
# File 'lib/rtmilk/api/lists.rb', line 64 def parse_result(result) super result['list'].first end |