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

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

Constant Summary

Constants inherited from Event::MethodEvent

Event::MethodEvent::MAX_ARRAY_ENUMERATION, Event::MethodEvent::MAX_HASH_ENUMERATION, Event::MethodEvent::MAX_STRING_LENGTH

Constants included from ValueInspector

ValueInspector::MAX_ARRAY_ELEMENTS, ValueInspector::MAX_DEPTH

Instance Attribute Summary

Attributes inherited from Event::MethodReturnIgnoreValue

#elapsed, #elapsed_instrumentation, #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

add_schema, add_size, build_from_invocation, custom_display_string, default_display_string, display_string, encode_display_string, #ready?

Methods included from ValueInspector

#best_class_name, #detect_schema, #detect_size

Constructor Details

#initialize(parent_id, elapsed) ⇒ SQLReturn

Returns a new instance of SQLReturn.



36
37
38
39
40
41
# File 'lib/appmap/handler/rails/sql_handler.rb', line 36

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