Class: AppMap::Event::MethodReturnIgnoreValue
- Inherits:
-
MethodEvent
- Object
- Struct
- MethodEventStruct
- MethodEvent
- AppMap::Event::MethodReturnIgnoreValue
- Defined in:
- lib/appmap/event.rb
Direct Known Subclasses
MethodReturn, Handler::HTTPClientResponse, Handler::Rails::RequestHandler::HTTPServerResponse, Handler::Rails::SQLHandler::SQLReturn
Constant Summary
Constants inherited from MethodEvent
AppMap::Event::MethodEvent::LIMIT
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
Attributes inherited from MethodEventStruct
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from MethodEvent
best_class_name, custom_display_string, default_display_string, display_string, encode_dislay_string, object_properties
Instance Attribute Details
#elapsed ⇒ Object
Returns the value of attribute elapsed.
204 205 206 |
# File 'lib/appmap/event.rb', line 204 def elapsed @elapsed end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
204 205 206 |
# File 'lib/appmap/event.rb', line 204 def parent_id @parent_id end |
Class Method Details
.build_from_invocation(parent_id, elapsed: nil, event: MethodReturnIgnoreValue.new) ⇒ Object
207 208 209 210 211 212 213 214 |
# File 'lib/appmap/event.rb', line 207 def build_from_invocation(parent_id, elapsed: nil, event: MethodReturnIgnoreValue.new) event ||= MethodReturnIgnoreValue.new event.tap do |_| event.parent_id = parent_id event.elapsed = elapsed MethodEvent.build_from_invocation(:return, event: event) end end |
Instance Method Details
#to_h ⇒ Object
217 218 219 220 221 222 |
# File 'lib/appmap/event.rb', line 217 def to_h super.tap do |h| h[:parent_id] = parent_id h[:elapsed] = elapsed if elapsed end end |