Module: Basquiat

Defined in:
lib/basquiat.rb,
lib/basquiat/version.rb,
lib/basquiat/support/json.rb,
lib/basquiat/rails/railtie.rb,
lib/basquiat/interfaces/base.rb,
lib/basquiat/adapters/base_adapter.rb,
lib/basquiat/adapters/base_message.rb,
lib/basquiat/adapters/test_adapter.rb,
lib/basquiat/support/configuration.rb,
lib/basquiat/adapters/rabbitmq/events.rb,
lib/basquiat/support/hash_refinements.rb,
lib/basquiat/adapters/rabbitmq/message.rb,
lib/basquiat/adapters/rabbitmq/session.rb,
lib/basquiat/adapters/rabbitmq_adapter.rb,
lib/basquiat/adapters/rabbitmq/connection.rb,
lib/basquiat/errors/strategy_not_registered.rb,
lib/basquiat/errors/subclass_responsibility.rb,
lib/basquiat/adapters/rabbitmq/configuration.rb,
lib/basquiat/adapters/rabbitmq/requeue_strategies/base_strategy.rb,
lib/basquiat/adapters/rabbitmq/requeue_strategies/dead_lettering.rb,
lib/basquiat/adapters/rabbitmq/requeue_strategies/auto_acknowledge.rb,
lib/basquiat/adapters/rabbitmq/requeue_strategies/delayed_delivery.rb,
lib/basquiat/adapters/rabbitmq/requeue_strategies/basic_acknowledge.rb

Overview

Version file

Defined Under Namespace

Modules: Adapters, Base, Errors, HashRefinements, Json Classes: Configuration, Railtie

Constant Summary collapse

VERSION =
'1.5.2'
DefaultLogger =
Naught.build { |config| config.mimic Logger }

Class Method Summary collapse

Class Method Details

.configurationConfiguration

Returns or initializes the Configuration object

Returns:

  • (Configuration)

    returns or initializes the Configuration object



23
24
25
# File 'lib/basquiat.rb', line 23

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

used to configure the gem using a block

Yield Parameters:



29
30
31
# File 'lib/basquiat.rb', line 29

def configure
  yield configuration
end

.loggerLogger

Returns shorthand for configuration.logger.

Returns:

  • (Logger)

    shorthand for configuration.logger



34
35
36
# File 'lib/basquiat.rb', line 34

def logger
  configuration.logger
end

.resetObject

resets the library configuration. Useful for testing and not much else



18
19
20
# File 'lib/basquiat.rb', line 18

def reset
  @configuration = Configuration.new
end