Sha256: 6ce7c5c54c0a528888bb48c664ca58c254c142b471b92b7cf646776e3d9031c8

Contents?: true

Size: 1.06 KB

Versions: 11

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Tools
    # Subclass for Config
    #
    # Options about Queues
    #
    # @see RubyRabbitmqJanus::Tools::Config
    module ConfigQueues
      # @return [String] Get to name queue_from (pattern)
      def queue_from
        @options['queues']['standard']['from'].to_s
      rescue
        raise RubyRabbitmqJanus::Errors::Tools::QueueFrom
      end

      # @return [String] Get to name queue_to (pattern)
      def queue_to
        @options['queues']['standard']['to'].to_s
      rescue
        raise RubyRabbitmqJanus::Errors::Tools::QueueTo
      end

      # @return [String] Get to name queue_admin_from (pattern)
      def queue_admin_from
        @options['queues']['admin']['from'].to_s
      rescue
        raise RubyRabbitmqJanus::Errors::Tools::QueueAdminFrom
      end

      # @return [String] Get to name queue_admin_from (pattern)
      def queue_admin_to
        @options['queues']['admin']['to'].to_s
      rescue
        raise RubyRabbitmqJanus::Errors::Tools::QueueAdminTo
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-4.0.0.pre.1001043172 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.949167646 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.946892338 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.946565704 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.939149205 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.939137013 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.939133437 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.939119110 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.939113634 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.850041590 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-3.0.1 lib/rrj/tools/gem/config/queues.rb