Class: Nin::Integration::Synchronizer::Todoist
- Inherits:
-
Nin::Integration::Synchronizer
- Object
- Nin::Integration::Synchronizer
- Nin::Integration::Synchronizer::Todoist
- Defined in:
- lib/nin/integration/synchronizer/todoist.rb
Instance Attribute Summary
Attributes inherited from Nin::Integration::Synchronizer
Instance Method Summary collapse
Methods inherited from Nin::Integration::Synchronizer
Constructor Details
This class inherits a constructor from Nin::Integration::Synchronizer
Instance Method Details
#sync(op, params = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nin/integration/synchronizer/todoist.rb', line 5 def sync(op, params = {}) @service = Integration::Service::Todoist.new(@client) case op when :read sync_read(params) when :add sync_add(params) when :edit sync_edit(params) when :edit_completed sync_edit(params, :checked) when :delete sync_delete(params) end end |