Sha256: cc7c6bfcc302b0febd604cae01ec9b2d56f1af7ef282f625ec43b835197a1841

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

# 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.to_json)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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