Module: SyncableModels::Importer
- Defined in:
- lib/syncable_models/importer.rb
Defined Under Namespace
Classes: Import
Constant Summary collapse
- @@imports =
[]
- @@interval =
5.minutes
- @@timeout =
10.seconds
Class Method Summary collapse
Class Method Details
.add_import {|import| ... } ⇒ Object
78 79 80 81 82 |
# File 'lib/syncable_models/importer.rb', line 78 def self.add_import import = Import.new yield import @@imports << import end |
.config {|_self| ... } ⇒ Object
74 75 76 |
# File 'lib/syncable_models/importer.rb', line 74 def self.config yield self end |
.import ⇒ Object
84 85 86 |
# File 'lib/syncable_models/importer.rb', line 84 def self.import @@imports.each &:import end |