Class: AppMap::Rails::SQLHandler::SQLReturn

Inherits:
Event::MethodReturnIgnoreValue show all
Defined in:
lib/appmap/rails/sql_handler.rb

Constant Summary

Constants inherited from Event::MethodEvent

Event::MethodEvent::LIMIT

Instance Attribute Summary

Attributes inherited from Event::MethodReturnIgnoreValue

#elapsed, #parent_id

Attributes inherited from Event::MethodEventStruct

#event, #id, #thread_id

Instance Method Summary collapse

Methods inherited from Event::MethodReturnIgnoreValue

build_from_invocation, #to_h

Methods inherited from Event::MethodEvent

build_from_invocation, display_string

Constructor Details

#initialize(parent_id, elapsed) ⇒ SQLReturn

Returns a new instance of SQLReturn.



32
33
34
35
36
37
# File 'lib/appmap/rails/sql_handler.rb', line 32

def initialize(parent_id, elapsed)
  super AppMap::Event.next_id_counter, :return, Thread.current.object_id

  self.parent_id = parent_id
  self.elapsed = elapsed
end