Class: Arborist::Event::NodeWarn
- Inherits:
-
Node
- Object
- Arborist::Event
- Node
- Arborist::Event::NodeWarn
- Defined in:
- lib/arborist/event/node_warn.rb
Overview
An event generated when a monitor adds the first warning to a node.
Instance Attribute Summary
Attributes inherited from Node
Attributes inherited from Arborist::Event
Instance Method Summary collapse
-
#initialize(node) ⇒ NodeWarn
constructor
Create a new NodeWarn event for the specified
node.
Methods inherited from Node
#inspect_details, #match, #payload, #to_h
Methods inherited from Arborist::Event
#informational?, #inspect, #inspect_details, #match, #to_h, #type
Constructor Details
#initialize(node) ⇒ NodeWarn
Create a new NodeWarn event for the specified node.
12 13 14 |
# File 'lib/arborist/event/node_warn.rb', line 12 def initialize( node ) super( node, node.warnings.to_h ) end |