Class: Motionscan::Sync
- Inherits:
-
Object
- Object
- Motionscan::Sync
- Defined in:
- lib/motionscan/sync.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.init ⇒ Object
7 8 9 10 |
# File 'lib/motionscan/sync.rb', line 7 def self.init instance = allocate instance end |
Instance Method Details
#startWithStatus(syncStarted, success: syncCompleted, error: syncFailed, progress: syncProgressed) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/motionscan/sync.rb', line 12 def startWithStatus(syncStarted, success:syncCompleted, error:syncFailed, progress:syncProgressed) @syncStarted = syncStarted @syncCompleted = syncCompleted @syncFailed = syncFailed @syncProgressed = syncProgressed @scanner = MSScanner.sharedInstance @scanner.syncWithDelegate(self) unless @scanner.isSyncing end |