Sha256: 80621dbcbf6f7154b5b234b7273bd57b7e5f57a42052600e52cc51df90ac9596

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

# this represents a FileSystem queue channel (or basically a folder)

module DispatchRider
  module NotificationServices
    class FileSystem::Channel
      def initialize(path)
        @file_system_queue = DispatchRider::QueueServices::FileSystem::Queue.new(path)
      end

      def publish(message)
        @file_system_queue.add(message[:message])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 lib/dispatch-rider/notification_services/file_system/channel.rb