Class: ActorSync::Sync
- Inherits:
-
Object
- Object
- ActorSync::Sync
- Defined in:
- lib/actor_sync/sync.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(actor, destination, opts = {}) ⇒ Sync
constructor
A new instance of Sync.
Constructor Details
#initialize(actor, destination, opts = {}) ⇒ Sync
Returns a new instance of Sync.
5 6 7 8 9 |
# File 'lib/actor_sync/sync.rb', line 5 def initialize(actor, destination, opts = {}) @actor = actor @destination = destination = opts end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/actor_sync/sync.rb', line 11 def call Worker.perform_later(@actor.class, @actor.id, @destination, ) if config.sync end |