Module: ActiveMessaging::Adapter

Overview

include this module to make a new adapter - will register the adapter w/gateway so an be used in connection config

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(included_by) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/activemessaging/adapter.rb', line 6

def self.included(included_by)
  class << included_by
    def register adapter_name
      Gateway.register_adapter adapter_name, self
    end
  end
end

Instance Method Details

#loggerObject



14
15
16
# File 'lib/activemessaging/adapter.rb', line 14

def logger()
  @@logger ||= ActiveMessaging.logger 
end