Sha256: 735f1672d505442a81e17319ea77b6707d84d02122369ba7c4b05ed93c3a4b6a
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
require "tsks/storage" module Tsks class Actions def self.update_tsks_with_uuid uuid current_tsks = Tsks::Storage.select_all for tsk in current_tsks Tsks::Storage.update tsk[:local_id], {user_id: uuid} end end def self.update_server_for_removed_tsks token tsks_uuids = Tsks::Storage.select_removed_uuids if !tsks_uuids.empty? for id in tsks_uuids Tsks::Request.delete "/tsks/#{id}", token end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tsks-0.0.7 | lib/tsks/actions.rb |
tsks-0.0.6 | lib/tsks/actions.rb |
tsks-0.0.5 | lib/tsks/actions.rb |
tsks-0.0.4 | lib/tsks/actions.rb |