Class: ActiveSupport::Notifications::Instrumenter::LegacyHandle

Inherits:
Object
  • Object
show all
Defined in:
activesupport/lib/active_support/notifications/instrumenter.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Wrapper

Instance Method Summary collapse

Constructor Details

#initialize(notifier, name, id, payload) ⇒ LegacyHandle

Returns a new instance of LegacyHandle.



34
35
36
37
38
39
# File 'activesupport/lib/active_support/notifications/instrumenter.rb', line 34

def initialize(notifier, name, id, payload)
  @notifier = notifier
  @name = name
  @id = id
  @payload = payload
end

Instance Method Details

#finishObject



45
46
47
# File 'activesupport/lib/active_support/notifications/instrumenter.rb', line 45

def finish
  @notifier.finish(@name, @id, @payload, @listener_state)
end

#startObject



41
42
43
# File 'activesupport/lib/active_support/notifications/instrumenter.rb', line 41

def start
  @listener_state = @notifier.start @name, @id, @payload
end