Module: Eventoverse
- Defined in:
- lib/eventoverse.rb,
lib/eventoverse/config.rb,
lib/eventoverse/version.rb,
lib/eventoverse/udp_reporter.rb,
lib/eventoverse/base_reporter.rb,
lib/eventoverse/amqp_reporter_mri.rb,
lib/eventoverse/amqp_reporter_jruby.rb
Defined Under Namespace
Modules: Config
Classes: AmqpReporterJRuby, AmqpReporterMri, BaseReporter, UdpReporter
Constant Summary
collapse
- VERSION =
"0.2.1"
Class Method Summary
collapse
Class Method Details
.amqp ⇒ Object
8
9
10
11
12
13
14
15
16
|
# File 'lib/eventoverse.rb', line 8
def self.amqp
if RUBY_PLATFORM == 'java'
require "eventoverse/amqp_reporter_jruby"
AmqpReporterJRuby.instance
else
require "eventoverse/amqp_reporter_mri"
AmqpReporterMri.instance
end
end
|
.config ⇒ Object
35
36
37
|
# File 'lib/eventoverse.rb', line 35
def self.config
@config
end
|
31
32
33
|
# File 'lib/eventoverse.rb', line 31
def self.configure!(config)
@config = config
end
|
.reporter ⇒ Object
27
28
29
|
# File 'lib/eventoverse.rb', line 27
def self.reporter
@repoter || self.udp
end
|
.set_reporter!(reporter) ⇒ Object
23
24
25
|
# File 'lib/eventoverse.rb', line 23
def self.set_reporter!(reporter)
@repoter = reporter
end
|
.udp ⇒ Object
18
19
20
21
|
# File 'lib/eventoverse.rb', line 18
def self.udp
require "eventoverse/udp_reporter"
UdpReporter.instance
end
|