Class: AppMap::Event::MethodReturnIgnoreValue

Inherits:
MethodEvent show all
Defined in:
lib/appmap/event.rb

Constant Summary

Constants inherited from MethodEvent

AppMap::Event::MethodEvent::LIMIT

Instance Attribute Summary collapse

Attributes inherited from MethodEventStruct

#event, #id, #thread_id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MethodEvent

display_string, object_properties

Instance Attribute Details

#elapsedObject

Returns the value of attribute elapsed.



175
176
177
# File 'lib/appmap/event.rb', line 175

def elapsed
  @elapsed
end

#parent_idObject

Returns the value of attribute parent_id.



175
176
177
# File 'lib/appmap/event.rb', line 175

def parent_id
  @parent_id
end

Class Method Details

.build_from_invocation(mr = MethodReturnIgnoreValue.new, parent_id, elapsed) ⇒ Object



178
179
180
181
182
183
184
# File 'lib/appmap/event.rb', line 178

def build_from_invocation(mr = MethodReturnIgnoreValue.new, parent_id, elapsed)
  mr.tap do |_|
    mr.parent_id = parent_id
    mr.elapsed = elapsed
    MethodEvent.build_from_invocation(mr, :return)
  end
end

Instance Method Details

#to_hObject



187
188
189
190
191
192
# File 'lib/appmap/event.rb', line 187

def to_h
  super.tap do |h|
    h[:parent_id] = parent_id
    h[:elapsed] = elapsed
  end
end