Class: Loggun::Modifiers::Base

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/loggun/modifiers/base.rb

Direct Known Subclasses

ActiveRecord, Clockwork, OutgoingHttp, Rails, Sidekiq

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.useObject



9
10
11
# File 'lib/loggun/modifiers/base.rb', line 9

def use
  instance.apply
end

Instance Method Details

#applyObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/loggun/modifiers/base.rb', line 14

def apply
  raise NotImplementedError, 'You must implement #apply in your modifier.'
end

#configObject



18
19
20
# File 'lib/loggun/modifiers/base.rb', line 18

def config
  Loggun::Config.instance
end