123456789_123456789_123456789_123456789_123456789_

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

Do not use. This class is for internal use only.
Relationships & Source Files
Namespace Children
Classes:
Inherits: Object
Defined in: activesupport/lib/active_support/notifications/instrumenter.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(notifier, name, id, payload) ⇒ LegacyHandle

[ GitHub ]

  
# 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

#finish

[ GitHub ]

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

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

#start

[ GitHub ]

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

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