Module: L2meter

Extended by:
L2meter
Included in:
L2meter
Defined in:
lib/l2meter.rb,
lib/l2meter/emitter.rb,
lib/l2meter/version.rb,
lib/l2meter/null_object.rb,
lib/l2meter/thread_safe.rb,
lib/l2meter/configuration.rb

Defined Under Namespace

Classes: Configuration, Emitter, NullObject, ThreadSafe

Constant Summary collapse

VERSION =
"0.6.1".freeze

Instance Method Summary collapse

Instance Method Details

#build(configuration: Configuration.new) {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


11
12
13
14
15
# File 'lib/l2meter.rb', line 11

def build(configuration: Configuration.new)
  yield configuration if block_given?
  emitter = Emitter.new(configuration: configuration.freeze)
  ThreadSafe.new(emitter)
end