Sha256: 39e268c86e5a457cfcdfe50006466e7d4a0327de9c8c7b07600b5a30e40f9df9

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 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 StandardError
        raise RubyRabbitmqJanus::Errors::Tools::QueueFrom
      end

      # @return [String] Get to name queue_to (pattern)
      def queue_to
        @options['queues']['standard']['to'].to_s
      rescue StandardError
        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 StandardError
        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 StandardError
        raise RubyRabbitmqJanus::Errors::Tools::QueueAdminTo
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-4.0.1 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.1.pre.1265973744 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.1.pre.1265506307 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.1.pre.1265140558 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.1001345090 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.1001181479 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.1001132533 lib/rrj/tools/gem/config/queues.rb
ruby_rabbitmq_janus-4.0.0.pre.1001107243 lib/rrj/tools/gem/config/queues.rb