Class: RTM::Lists::Delete

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

Overview

Instance Method Summary collapse

Methods inherited from API

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

Constructor Details

#initialize(token, id) ⇒ Delete

Returns a new instance of Delete.



39
40
41
42
# File 'lib/rtmilk/api/lists.rb', line 39

def initialize(token, id)
   super 'rtm.lists.delete', token, RTM::Timeline.new(token).to_s
   @param['list_id'] = id
end

Instance Method Details

#parse_result(result) ⇒ Object

return [name, smart, filter?, id, archived, deleted, position, locked]*



34
35
36
37
# File 'lib/rtmilk/api/lists.rb', line 34

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