Sha256: 655562ab1efaf641796a63a838e2e30050c1071a09a1bbdd3f0ca8f355788d02

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

module Hat
  module Patterns
    module Topic

      module ClassMethods

        def listen(key=nil)
          self.bind_options[:routing_key] = key
        end

      end

      private

      def exchange
        @channel.topic('hat.topic')
      end

      def self.included(base)
        base.extend ClassMethods
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rabbit-hat-0.0.1 lib/hat/patterns/topic.rb