lib/todoist/misc/quick.rb in todoist-ruby-0.1.3 vs lib/todoist/misc/quick.rb in todoist-ruby-0.2.1
- old
+ new
@@ -1,13 +1,13 @@
module Todoist
module Misc
- class Quick
+ class Quick < Todoist::Service
include Todoist::Util
# Implementation of the Quick Add Task available in the official
# clients.
def add_item(text)
- result = NetworkHelper.getResponse(Config::TODOIST_QUICK_ADD_COMMAND, {text: text})
+ result = @client.api_helper.get_response(Config::TODOIST_QUICK_ADD_COMMAND, {text: text})
return ParseHelper.make_object(result)
end
end
end
\ No newline at end of file