Sha256: c6b2b7691434949cbaab5e366bb26cc5d85fea20c4ee08f17837a20b4d66c52a

Contents?: true

Size: 474 Bytes

Versions: 3

Compression:

Stored size: 474 Bytes

Contents

require 'synchronisable/helper/logging'

module Synchronisable
  module Worker
    # Base class for synchronization workers.
    #
    # @see Synchronisable::Worker::Record
    # @see Synchronisable::Worker::Associations
    #
    # @api private
    class Base
      include Helper::Logging

      def initialize(synchronizer, source)
        @synchronizer, @source = synchronizer, source
      end

      def logger
        @synchronizer.logger
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
synchronisable-1.0.2 lib/synchronisable/worker/base.rb
synchronisable-1.0.1 lib/synchronisable/worker/base.rb
synchronisable-1.0.0 lib/synchronisable/worker/base.rb