Class: ActiveSupport::Notifications::Instrumenter::LegacyHandle
- Defined in:
- lib/active_support/notifications/instrumenter.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Wrapper
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(notifier, name, id, payload) ⇒ LegacyHandle
constructor
A new instance of LegacyHandle.
- #start ⇒ Object
Constructor Details
#initialize(notifier, name, id, payload) ⇒ LegacyHandle
Returns a new instance of LegacyHandle.
34 35 36 37 38 39 |
# File '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
#finish ⇒ Object
45 46 47 |
# File 'lib/active_support/notifications/instrumenter.rb', line 45 def finish @notifier.finish(@name, @id, @payload, @listener_state) end |
#start ⇒ Object
41 42 43 |
# File 'lib/active_support/notifications/instrumenter.rb', line 41 def start @listener_state = @notifier.start @name, @id, @payload end |