Sha256: 690efd34feac9704d22ee7a7e6be0b7620a41b55f637fa30ad5fe1735b1872b3

Contents?: true

Size: 436 Bytes

Versions: 6

Compression:

Stored size: 436 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
        fail 'must be implemented in subclass'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
message-driver-0.6.1 lib/message_driver/subscription.rb
message-driver-0.6.0 lib/message_driver/subscription.rb
message-driver-0.5.3 lib/message_driver/subscription.rb
message-driver-0.5.2 lib/message_driver/subscription.rb
message-driver-0.5.1 lib/message_driver/subscription.rb
message-driver-0.5.0 lib/message_driver/subscription.rb