Class: RTM::Tasks::Notes::Edit

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

Overview

Delete

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, timeline, note, title, text) ⇒ Edit

Returns a new instance of Edit.



45
46
47
48
49
50
51
# File 'lib/rtmilk/api/notes.rb', line 45

def initialize(token, timeline, note, title, text)
   super 'rtm.tasks.notes.edit', token
   @param[:timeline] = timeline
   @param[:note_id] = note
   @param[:note_title] = title
   @param[:note_text] = text
end

Instance Method Details

#parse_result(result) ⇒ Object



40
41
42
43
# File 'lib/rtmilk/api/notes.rb', line 40

def parse_result(result)
   super
   [result['note'].first, result['transaction'].first]
end