Sha256: c2493566320ee007b3ea391e2c002b0eac9fa858d21fa12b4e8b900af351d6bc

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

module MessageDriver
  module Subscription
    class Base
      include Logging
      attr_reader :adapter, :destination, :consumer, :options

      def initialize(adapter, destination, consumer, options = {})
        @adapter = adapter
        @destination = destination
        @consumer = consumer
        @options = options
      end

      def unsubscribe
        raise 'must be implemented in subclass'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
message-driver-1.0.1 lib/message_driver/subscription.rb
message-driver-1.0.0 lib/message_driver/subscription.rb
message-driver-0.7.2 lib/message_driver/subscription.rb
message-driver-0.7.1 lib/message_driver/subscription.rb
message-driver-0.7.0 lib/message_driver/subscription.rb