Class: AppMap::Event::MethodReturnIgnoreValue
- Inherits:
-
MethodEvent
- Object
- Struct
- MethodEventStruct
- MethodEvent
- AppMap::Event::MethodReturnIgnoreValue
- Defined in:
- lib/appmap/event.rb
Direct Known Subclasses
MethodReturn, Rails::ActionHandler::HTTPServerResponse::Call, 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
#defined_class, #event, #id, #lineno, #method_id, #path, #static, #thread_id
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from MethodEvent
Instance Attribute Details
#elapsed ⇒ Object
Returns the value of attribute elapsed.
105 106 107 |
# File 'lib/appmap/event.rb', line 105 def elapsed @elapsed end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
105 106 107 |
# File 'lib/appmap/event.rb', line 105 def parent_id @parent_id end |
Class Method Details
.build_from_invocation(mr = MethodReturnIgnoreValue.new, defined_class, method, parent_id, elapsed) ⇒ Object
108 109 110 111 112 113 114 |
# File 'lib/appmap/event.rb', line 108 def build_from_invocation(mr = MethodReturnIgnoreValue.new, defined_class, method, parent_id, elapsed) mr.tap do |_| mr.parent_id = parent_id mr.elapsed = elapsed MethodEvent.build_from_invocation(mr, :return, defined_class, method) end end |
Instance Method Details
#to_h ⇒ Object
117 118 119 120 121 122 |
# File 'lib/appmap/event.rb', line 117 def to_h super.tap do |h| h[:parent_id] = parent_id h[:elapsed] = elapsed end end |