Class: Hyperdrive::Instrumenters::Noop

Inherits:
Object
  • Object
show all
Defined in:
lib/hyperdrive/instrumenters/noop.rb

Class Method Summary collapse

Class Method Details

.instrument(name, payload = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/hyperdrive/instrumenters/noop.rb', line 6

def self.instrument(name, payload = {})
  if block_given?
    yield payload
  else
    payload
  end
end