Class: AppMap::Event::MethodReturnIgnoreValue
- Inherits:
-
MethodEvent
- Object
- Struct
- MethodEventStruct
- MethodEvent
- AppMap::Event::MethodReturnIgnoreValue
- Defined in:
- lib/appmap/event.rb
Direct Known Subclasses
MethodReturn, Rails::RequestHandler::HTTPServerResponse, 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
Instance Attribute Details
#elapsed ⇒ Object
Returns the value of attribute elapsed.
157 158 159 |
# File 'lib/appmap/event.rb', line 157 def elapsed @elapsed end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
157 158 159 |
# File 'lib/appmap/event.rb', line 157 def parent_id @parent_id end |
Class Method Details
.build_from_invocation(mr = MethodReturnIgnoreValue.new, parent_id, elapsed) ⇒ Object
160 161 162 163 164 165 166 |
# File 'lib/appmap/event.rb', line 160 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_h ⇒ Object
169 170 171 172 173 174 |
# File 'lib/appmap/event.rb', line 169 def to_h super.tap do |h| h[:parent_id] = parent_id h[:elapsed] = elapsed end end |