Module: Atr
- Defined in:
- lib/atr.rb,
lib/atr/event.rb,
lib/atr/redis.rb,
lib/atr/config.rb,
lib/atr/errors.rb,
lib/atr/railtie.rb,
lib/atr/reactor.rb,
lib/atr/version.rb,
lib/atr/registry.rb,
lib/atr/publisher.rb,
lib/atr/publishable.rb,
lib/atr/request_scope.rb,
lib/atr/request_authenticator.rb
Defined Under Namespace
Modules: Publishable
Classes: AtrError, Config, Event, MustImplementMethodError, Publisher, Railtie, Reactor, Redis, Registry, RequestAuthenticator, RequestScope, Server
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
Also known as:
config
Returns the value of attribute configuration.
22
23
24
|
# File 'lib/atr.rb', line 22
def configuration
@configuration
end
|
Class Method Details
34
35
36
37
38
39
40
|
# File 'lib/atr.rb', line 34
def self.configure
self.configuration ||= ::Atr::Config.new
yield(configuration)
::ActiveSupport.run_load_hooks(:atr, self)
end
|
.publish_event(event) ⇒ Object
26
27
28
|
# File 'lib/atr.rb', line 26
def self.publish_event(event)
::Celluloid::Actor[:atr_publisher].publish_event(event)
end
|